MrGanesh commited on
Commit
0096d1e
·
1 Parent(s): cfbeebd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -15,8 +15,8 @@ placeholder = st.empty()
15
  text_input = placeholder.text_area("Paste or write text", height=300)
16
  button = st.button("Extract Keywords")
17
  top_n = st.sidebar.slider("Select a number of keywords", 1, 10, 50,20)
18
- min_ngram = st.sidebar.number_input("Minimum number of words in each keyword", 1, 5, 1, 1)
19
- max_ngram = st.sidebar.number_input("Maximum number of words in each keyword", min_ngram, 5, 3, step=1)
20
  st.sidebar.code(f"ngram_range=({min_ngram}, {max_ngram})")
21
 
22
  params = {"docs": text_input, "top_n": top_n, "keyphrase_ngram_range": (min_ngram, max_ngram), "stop_words": 'english',"vectorizer":KeyphraseCountVectorizer()}
 
15
  text_input = placeholder.text_area("Paste or write text", height=300)
16
  button = st.button("Extract Keywords")
17
  top_n = st.sidebar.slider("Select a number of keywords", 1, 10, 50,20)
18
+ min_ngram = st.sidebar.number_input("Minimum number of words in each keyword", 1)
19
+ max_ngram = st.sidebar.number_input("Maximum number of words in each keyword", 2,3,4, step=1)
20
  st.sidebar.code(f"ngram_range=({min_ngram}, {max_ngram})")
21
 
22
  params = {"docs": text_input, "top_n": top_n, "keyphrase_ngram_range": (min_ngram, max_ngram), "stop_words": 'english',"vectorizer":KeyphraseCountVectorizer()}