mirror of
https://github.com/wassname/IndicoIo-python.git
synced 2026-07-26 13:07:34 +08:00
FIX: Added version changes and IndicoError
This commit is contained in:
@@ -1,14 +1,14 @@
|
||||
from functools import partial
|
||||
|
||||
Version, version, __version__, VERSION = ('0.7.0',) * 4
|
||||
|
||||
JSON_HEADERS = {
|
||||
'Content-type': 'application/json',
|
||||
'Accept': 'application/json',
|
||||
'client-lib': 'python',
|
||||
'version-number': '0.7.0'
|
||||
'version-number': VERSION
|
||||
}
|
||||
|
||||
Version, version, __version__, VERSION = ('0.7.0',) * 4
|
||||
|
||||
from indicoio.text.sentiment import political, posneg
|
||||
from indicoio.text.sentiment import posneg as sentiment
|
||||
from indicoio.text.lang import language
|
||||
|
||||
@@ -33,7 +33,7 @@ def multi(data, type, apis, available, batch=False, **kwargs):
|
||||
|
||||
def handle_response(result):
|
||||
# Parse out the results to a dicionary of api: result
|
||||
return dict((SERVER_CLIENT_MAP[api], parsed_response(res))
|
||||
return dict((SERVER_CLIENT_MAP[api], parsed_response(api, res))
|
||||
for api, res in result.iteritems())
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user