Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug CLASSIFICATION_ENDPOINT #5

Closed
wannaphong opened this issue Dec 5, 2015 · 2 comments
Closed

Bug CLASSIFICATION_ENDPOINT #5

wannaphong opened this issue Dec 5, 2015 · 2 comments

Comments

@wannaphong
Copy link

>>> from monkeylearn import MonkeyLearn
>>> ml = MonkeyLearn('API')
>>> res = ml.classifiers.create('Test Classifier')
>>> module_id = res.result['classifier']['hashed_id']
>>> res = ml.classifiers.detail(module_id)
>>> root_id = res.result['sandbox_categories'][0]['id']
>>> res = ml.classifiers.categories.create(module_id, 'Negative', root_id)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\py34\lib\site-packages\monkeylearn\classification.py", line 20, in ca
tegories
    return Categories(self.token)
  File "C:\py34\lib\site-packages\monkeylearn\classification.py", line 110, in _
_init__
    self.endpoint = CLASSIFICATION_ENDPOINT
NameError: name 'CLASSIFICATION_ENDPOINT' is not defined

I using Python 3.4.3 64 bit for windows. Thank you.

@wannaphong
Copy link
Author

fix #6

@rsteca
Copy link
Contributor

rsteca commented Dec 7, 2015

Solved, thanks for reporting

@rsteca rsteca closed this as completed Dec 7, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants