chg: [SentimentAnalysis] clean

This commit is contained in:
Terrtia 2020-02-10 11:06:39 +01:00
parent 4097d95237
commit f950e700bd
No known key found for this signature in database
GPG key ID: 1E1B1F50D84613D0

View file

@ -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)