Sean-Case
commited on
Commit
β’
7e5fca9
1
Parent(s):
5c04910
Added nltk download for names for HF use
Browse files
README.md
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
---
|
2 |
title: Data text search
|
3 |
-
emoji:
|
4 |
-
colorFrom:
|
5 |
-
colorTo:
|
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
|