Closed renoust closed 6 years ago
Hi!
In jSentiments.py, in polarScores_text(), you are processing each sentence by:
jSentiments.py
polarScores_text()
for sent in text.split(u'。'): etc.
This part actually crashes when you have an empty sentence coming in, that we can protect using:
for sent in text.split(u'。'): if len(sent.strip()) == 0: continue etc.
Hi!
In
jSentiments.py
, inpolarScores_text()
, you are processing each sentence by:This part actually crashes when you have an empty sentence coming in, that we can protect using: