Commits

Martin Ostrovsky committed 094e580

fixed bugs in python client

  • Participants
  • Parent commits 1d68c86

Comments (0)

Files changed (1)

File python/repustate.py

 
         return result
 
-    def _call_natural_language(self, api_function, cloud=None, text=None,
-                               url=None):
+    def _call_natural_language(self, api_function, cloud=None, text=None, url=None, lang='en'):
         """
         Helper function for the NLP calls.
         """
-        return self._call_api(api_function, cloud=cloud, text=text, url=url)
+        return self._call_api(api_function, cloud=cloud, text=text, url=url, lang=lang)
 
     def sentiment(self, text=None, url=None, lang='en'):
         """
         for idx, item in enumerate(items):
             items_to_score['text%d' % idx] = item
 
-        return self._call_api('bulk-score', **items_to_score, lang=lang)
+        return self._call_api('bulk-score', lang=lang, **items_to_score)
 
     def clean_html(self, url=None):
         """