mirror of
https://github.com/wassname/IndicoIo-python.git
synced 2026-10-03 12:00:44 +08:00
Update api names
This commit is contained in:
1 parent
5ef6c2ad17
commit
1d66a039a2
3 files changed
+6
-6
No files matched your search
@@ -1,6 +1,6 @@
|
||||
from indicoio.utils import api_handler
|
||||
|
||||
def classification(api_root, text):
|
||||
def text_tags(api_root, text):
|
||||
"""
|
||||
Given input text, returns a probability distribution over 100 document categories
|
||||
|
||||
@@ -22,4 +22,4 @@ def classification(api_root, text):
|
||||
:rtype: Dictionary of class probability pairs
|
||||
"""
|
||||
|
||||
return api_handler(text, api_root + "documentclassification")
|
||||
return api_handler(text, api_root + "texttags")
|
||||
Reference in new issue
Block a user