mirror of
https://github.com/ail-project/ail-framework.git
synced 2024-11-23 06:37:15 +00:00
chg: [SentimentAnalysis] clean
This commit is contained in:
parent
4097d95237
commit
f950e700bd
1 changed files with 1 additions and 1 deletions
|
@ -64,7 +64,7 @@ def Analyse(message, server):
|
|||
|
||||
try:
|
||||
sentences = tokenize.sent_tokenize(p_content)
|
||||
except Exception as e:
|
||||
except:
|
||||
# use the NLTK Downloader to obtain the resource
|
||||
download('punkt')
|
||||
sentences = tokenize.sent_tokenize(p_content)
|
||||
|
|
Loading…
Reference in a new issue