Source

corenlp-python / corenlp / corenlp.py

Diff from to

corenlp/corenlp.py

     """
     results = {"sentences": []}
     state = STATE_START
-    for line in unidecode(text.decode('utf-8')).split("\n"):
+
+    if type(text) == str:
+        text = text.decode('utf-8')
+
+    for line in unidecode(text).split("\n"):
         line = line.strip()
 
         if line.startswith("Sentence #"):