Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion pycorenlp/corenlp.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,10 @@ def annotate(self, text, properties=None):
try:
output = json.loads(output, encoding='utf-8', strict=True)
except:
pass
try:
output = json.loads(output, strict=False)
except:
pass
return output

def tokensregex(self, text, pattern, filter):
Expand Down