mirror of
https://github.com/wassname/IndicoIo-python.git
synced 2026-06-30 16:40:38 +08:00
Versioning and removing small block of commented code
This commit is contained in:
@@ -17,3 +17,4 @@ v0.4.11, Thu Dec 18 -- Updated tests for text tags
|
||||
v0.4.12, Fri Dec 19 -- Added batch support interface
|
||||
v0.4.13, Fri Dec 19 -- Added optional arguments to text tags API
|
||||
v0.4.14, Sat Dec 20 -- Fix for batch image features preprocessing, increased test coverage
|
||||
v0.4.15, Sat Dec 20 -- Bug fix release
|
||||
|
||||
@@ -3,7 +3,7 @@ import indicoio.config as config
|
||||
|
||||
JSON_HEADERS = {'Content-type': 'application/json', 'Accept': 'text/plain'}
|
||||
|
||||
Version, version, __version__, VERSION = ('0.4.14',) * 4
|
||||
Version, version, __version__, VERSION = ('0.4.15',) * 4
|
||||
|
||||
from indicoio.text.sentiment import political, posneg
|
||||
from indicoio.text.sentiment import posneg as sentiment
|
||||
|
||||
@@ -26,9 +26,7 @@ def api_handler(arg, url, batch=False, auth=None, **kwargs):
|
||||
json_data = json.dumps(data)
|
||||
if batch:
|
||||
url += "/batch"
|
||||
# if not auth:
|
||||
# auth = auth_query()
|
||||
|
||||
|
||||
response = requests.post(url, data=json_data, headers=JSON_HEADERS, auth=auth).json()
|
||||
results = response.get('results', False)
|
||||
if results is False:
|
||||
|
||||
Reference in New Issue
Block a user