vives commited on
Commit
a89cb28
·
1 Parent(s): 06184f0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -4
app.py CHANGED
@@ -16,10 +16,6 @@ tokenizer = AutoTokenizer.from_pretrained(model_checkpoint)
16
  FILT_GROUPS = ["CARDINAL", "TIME", "DATE", "PERCENT", "MONEY", "QUANTITY", "ORDINAL"]
17
  POS = ["NOUN", "PROPN", "VERB"]
18
 
19
- nlp = spacy.load("en_core_web_sm")
20
- nlp.add_pipe("textrank", last=True, config={"pos_kept": POS, "token_lookback": 3})
21
- all_stopwords = nlp.Defaults.stop_words
22
-
23
  #streamlit stuff
24
  tags = st.text_input("Input tags separated by commas")
25
  text = st.text_input("Input text to classify")
 
16
  FILT_GROUPS = ["CARDINAL", "TIME", "DATE", "PERCENT", "MONEY", "QUANTITY", "ORDINAL"]
17
  POS = ["NOUN", "PROPN", "VERB"]
18
 
 
 
 
 
19
  #streamlit stuff
20
  tags = st.text_input("Input tags separated by commas")
21
  text = st.text_input("Input text to classify")