ADD: keywords api support

This commit is contained in:
jagreene
2015-07-07 11:51:49 -04:00
committed by Madison May
parent c9a6585086
commit b5d0aafc4e
10 changed files with 80 additions and 30 deletions
+2 -2
View File
@@ -22,5 +22,5 @@ def text_tags(text, cloud=None, batch=False, api_key=None, **kwargs):
:type text: str or unicode
:rtype: Dictionary of class probability pairs
"""
return api_handler(text, cloud=cloud, api="texttags", url_params={"batch":batch, "api_key":api_key}, **kwargs)
url_params = {"batch": batch, "api_key": api_key}
return api_handler(text, cloud=cloud, api="texttags", url_params=url_params, **kwargs)