Sean-Case commited on
Commit
7e5fca9
β€’
1 Parent(s): 5c04910

Added nltk download for names for HF use

Browse files
Files changed (2) hide show
  1. README.md +3 -3
  2. app.py +3 -0
README.md CHANGED
@@ -1,8 +1,8 @@
1
  ---
2
  title: Data text search
3
- emoji: πŸš€
4
- colorFrom: green
5
- colorTo: indigo
6
  sdk: gradio
7
  sdk_version: 3.50.0
8
  app_file: app.py
 
1
  ---
2
  title: Data text search
3
+ emoji: πŸ”
4
+ colorFrom: purple
5
+ colorTo: green
6
  sdk: gradio
7
  sdk_version: 3.50.0
8
  app_file: app.py
app.py CHANGED
@@ -1,6 +1,9 @@
1
  from search_funcs.fast_bm25 import BM25
2
  from search_funcs.clean_funcs import initial_clean, get_lemma_tokens#, stem_sentence
3
  from nltk import word_tokenize
 
 
 
4
 
5
  import gradio as gr
6
  import pandas as pd
 
1
  from search_funcs.fast_bm25 import BM25
2
  from search_funcs.clean_funcs import initial_clean, get_lemma_tokens#, stem_sentence
3
  from nltk import word_tokenize
4
+ import nltk
5
+
6
+ nltk.download('names')
7
 
8
  import gradio as gr
9
  import pandas as pd