Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/psibi/pyuclassify
Python Wrapper for accessing uClassify services
https://github.com/psibi/pyuclassify
Last synced: 23 days ago
JSON representation
Python Wrapper for accessing uClassify services
- Host: GitHub
- URL: https://github.com/psibi/pyuclassify
- Owner: psibi
- License: other
- Created: 2012-05-31T08:26:33.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2017-04-02T16:50:56.000Z (over 7 years ago)
- Last Synced: 2024-04-29T06:03:08.698Z (7 months ago)
- Language: Python
- Size: 30.3 KB
- Stars: 19
- Watchers: 8
- Forks: 6
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG
- License: COPYING
Awesome Lists containing this project
README
pyuClassify
------------Python Wrapper for accessing uClassify services.
Currently supports following operation:
1. Creates Classifier
2. Classify
3. Classify Keywords
4. getInformation
5. addClass
6. removeClass
7. Train
8. Untrain
9. removeClassifierInstallation:
-------------It is very easy to install pyuClassify.
(pip install | easy_install) uclassify
... or in the traditional way:
$ git clone git://github.com/psibi/pyuClassify.git
$ cd uclassify
$ sudo python setup.py installUsage:
------An example of how to use the API.
from uclassify import uclassify
a = uclassify()
a.setWriteApiKey(WRITE_API_KEY)
a.setReadApiKey(READ_API_KEY)
a.create("ManorWoman") #Creates Classifier named "ManorWoman"a.addClass(["man","woman"],"ManorWoman") #Adds two class named "man" and "woman" to the classifier "ManorWoman"
a.train(["Her hair is so nice!!","I wish I had more cosmetic.","I like those ice creams."],"woman","ManorWoman")
#The above function trains three sentences for the class "woman" on the classifier "ManorWoman"
d = a.classify(["sample text1","sample text2"],"ManorWoman")
#Now the list d will contain the following value [('sample text1', u'0', [(u'man', u'0.5'), (u'woman', u'0.5')]), ('sample text2', u'0', [(u'man', u'0.5'), (u'woman', u'0.5')])]License:
--------
GNU General Public License v3 (GPLv3)Bug Report:
-----------
Issue it here: https://github.com/psibi/pyuClassify/issues