Update app.py
Browse files
app.py
CHANGED
|
@@ -9,8 +9,8 @@ streamlit.title("NER4Archives visualizer")
|
|
| 9 |
streamlit.write("This is a NER model test application for NER4Archives project. "
|
| 10 |
"Pass through the analyzer only small samples.")
|
| 11 |
text = streamlit.text_area("Text to analyze...", default_text)
|
| 12 |
-
models = [name.strip() for name in models.split(",")]
|
| 13 |
-
nlp = spacy.load(
|
| 14 |
nlp.add_pipe("entityfishing")
|
| 15 |
doc = nlp(text)
|
| 16 |
spacy_streamlit.visualize_ner(
|
|
|
|
| 9 |
streamlit.write("This is a NER model test application for NER4Archives project. "
|
| 10 |
"Pass through the analyzer only small samples.")
|
| 11 |
text = streamlit.text_area("Text to analyze...", default_text)
|
| 12 |
+
# models = [name.strip() for name in models.split(",")]
|
| 13 |
+
nlp = spacy.load("fr_ner4archives_default_test")
|
| 14 |
nlp.add_pipe("entityfishing")
|
| 15 |
doc = nlp(text)
|
| 16 |
spacy_streamlit.visualize_ner(
|