amirhoseinsedaghati commited on
Commit
4ca5e8f
·
verified ·
1 Parent(s): 642b667

Update pages/Analyze_Text.py

Browse files
Files changed (1) hide show
  1. pages/Analyze_Text.py +9 -1
pages/Analyze_Text.py CHANGED
@@ -20,7 +20,15 @@ from collections import Counter
20
  import neattext as nt
21
  import neattext.functions as nfx
22
  from textblob import TextBlob
23
-
 
 
 
 
 
 
 
 
24
 
25
  def get_tokens_analysis(text):
26
  doc_obj = nlp(text)
 
20
  import neattext as nt
21
  import neattext.functions as nfx
22
  from textblob import TextBlob
23
+ import nltk
24
+
25
+ # These corpora are commonly used by TextBlob for various natural language processing tasks.
26
+ nltk.download('brown')
27
+ nltk.download('punkt')
28
+ nltk.download('wordnet')
29
+ nltk.download('averaged_perceptron_tagger')
30
+ nltk.download('conll2000')
31
+ nltk.download('movie_reviews')
32
 
33
  def get_tokens_analysis(text):
34
  doc_obj = nlp(text)