REMOVE: remove sentiment_hq from text_apis by default

This commit is contained in:
Madison May
2015-06-11 19:36:55 -04:00
parent df0a25aa46
commit c6d80715cb
4 changed files with 5 additions and 4 deletions
+1
View File
@@ -25,3 +25,4 @@ v0.5.3, Wed Apr 15 -- Added scipy to requirements, edited Readme to not break py
v0.6.0, Thu May 29 -- Remove numpy / scipy dependency in favor of Pillow
v0.7.0, Tue Jun 9 -- Added support for calling multiple APIs in a single function and accepting filenames as image API inputs
v0.7.1 Thu Jun 11 -- High quality sentiment API for private beta, fix for multi API support
v0.7.2 Thu Jun 11 -- Remove sentiment_hq from text apis by default
+1 -1
View File
@@ -1,6 +1,6 @@
from functools import partial
Version, version, __version__, VERSION = ('0.7.1',) * 4
Version, version, __version__, VERSION = ('0.7.2',) * 4
JSON_HEADERS = {
'Content-type': 'application/json',
+3
View File
@@ -11,6 +11,9 @@ AVAILABLE_APIS = {
'image': IMAGE_APIS
}
# TODO: remove this line when sentiment_hq is released publicly
AVAILABLE_APIS['text'].remove('sentiment_hq')
def multi(data, datatype, apis, batch=False, **kwargs):
"""
Helper to make multi requests of different types.
-3
View File
@@ -13,9 +13,6 @@ from indicoio import sentiment_hq, batch_sentiment_hq
from indicoio import predict_image, predict_text, batch_predict_image, batch_predict_text
from indicoio.utils.errors import IndicoError
# TODO: remove once sentiment_hq is added to the public API
config.TEXT_APIS.remove("sentiment_hq")
DIR = os.path.dirname(os.path.realpath(__file__))
class BatchAPIRun(unittest.TestCase):