Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -32,29 +32,28 @@ import math
|
|
32 |
#subprocess.run(["pip", "install", "--upgrade", "gradio==3.47.1"]) #For huggingface as they sometimes install specific versions on container build
|
33 |
|
34 |
#Uncomment these for Huggingface
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
#spacy.cli.download("de_core_news_sm")
|
58 |
|
59 |
nlp_en = spacy.load("en_core_web_sm")
|
60 |
nlp_de = spacy.load("de_core_news_sm")
|
|
|
32 |
#subprocess.run(["pip", "install", "--upgrade", "gradio==3.47.1"]) #For huggingface as they sometimes install specific versions on container build
|
33 |
|
34 |
#Uncomment these for Huggingface
|
35 |
+
nltk.download('maxent_ne_chunker') #Chunker
|
36 |
+
nltk.download('stopwords') #Stop Words List (Mainly Roman Languages)
|
37 |
+
nltk.download('words') #200 000+ Alphabetical order list
|
38 |
+
nltk.download('punkt') #Tokenizer
|
39 |
+
nltk.download('verbnet') #For Description of Verbs
|
40 |
+
nltk.download('omw')
|
41 |
+
nltk.download('omw-1.4') #Multilingual Wordnet
|
42 |
+
nltk.download('wordnet') #For Definitions, Antonyms and Synonyms
|
43 |
+
nltk.download('shakespeare')
|
44 |
+
nltk.download('dolch') #Sight words
|
45 |
+
nltk.download('names') #People Names NER
|
46 |
+
nltk.download('gazetteers') #Location NER
|
47 |
+
nltk.download('opinion_lexicon') #Sentiment words
|
48 |
+
nltk.download('averaged_perceptron_tagger') #Parts of Speech Tagging
|
49 |
+
nltk.download('udhr') # Declaration of Human rights in many languages
|
50 |
+
|
51 |
+
spacy.cli.download("en_core_web_sm")
|
52 |
+
spacy.cli.download('ko_core_news_sm')
|
53 |
+
spacy.cli.download('ja_core_news_sm')
|
54 |
+
spacy.cli.download('zh_core_web_sm')
|
55 |
+
spacy.cli.download("es_core_news_sm")
|
56 |
+
spacy.cli.download("de_core_news_sm")
|
|
|
57 |
|
58 |
nlp_en = spacy.load("en_core_web_sm")
|
59 |
nlp_de = spacy.load("de_core_news_sm")
|