mirror of https://github.com/CIRCL/AIL-framework
chg: [SentimentAnalysis] clean
parent
4097d95237
commit
f950e700bd
|
@ -64,7 +64,7 @@ def Analyse(message, server):
|
||||||
|
|
||||||
try:
|
try:
|
||||||
sentences = tokenize.sent_tokenize(p_content)
|
sentences = tokenize.sent_tokenize(p_content)
|
||||||
except Exception as e:
|
except:
|
||||||
# use the NLTK Downloader to obtain the resource
|
# use the NLTK Downloader to obtain the resource
|
||||||
download('punkt')
|
download('punkt')
|
||||||
sentences = tokenize.sent_tokenize(p_content)
|
sentences = tokenize.sent_tokenize(p_content)
|
||||||
|
|
Loading…
Reference in New Issue