Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -20,25 +20,25 @@ import textwrap
|
|
| 20 |
import pandas as pd
|
| 21 |
|
| 22 |
#Uncomment these for Huggingface
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
| 42 |
|
| 43 |
nlp = spacy.load('en_core_web_sm')
|
| 44 |
translator = Translator()
|
|
|
|
| 20 |
import pandas as pd
|
| 21 |
|
| 22 |
#Uncomment these for Huggingface
|
| 23 |
+
nltk.download('maxent_ne_chunker') #Chunker
|
| 24 |
+
nltk.download('stopwords') #Stop Words List (Mainly Roman Languages)
|
| 25 |
+
nltk.download('words') #200 000+ Alphabetical order list
|
| 26 |
+
nltk.download('punkt') #Tokenizer
|
| 27 |
+
nltk.download('verbnet') #For Description of Verbs
|
| 28 |
+
nltk.download('omw')
|
| 29 |
+
nltk.download('omw-1.4') #Multilingual Wordnet
|
| 30 |
+
nltk.download('wordnet') #For Definitions, Antonyms and Synonyms
|
| 31 |
+
nltk.download('shakespeare')
|
| 32 |
+
nltk.download('dolch') #Sight words
|
| 33 |
+
nltk.download('names') #People Names NER
|
| 34 |
+
nltk.download('gazetteers') #Location NER
|
| 35 |
+
nltk.download('opinion_lexicon') #Sentiment words
|
| 36 |
+
nltk.download('averaged_perceptron_tagger') #Parts of Speech Tagging
|
| 37 |
+
|
| 38 |
+
spacy.cli.download("en_core_web_sm")
|
| 39 |
+
spacy.cli.download('ko_core_news_sm')
|
| 40 |
+
spacy.cli.download('ja_core_news_sm')
|
| 41 |
+
spacy.cli.download('zh_core_web_sm')
|
| 42 |
|
| 43 |
nlp = spacy.load('en_core_web_sm')
|
| 44 |
translator = Translator()
|