Spaces:
Runtime error
Runtime error
File size: 354 Bytes
2b0883c |
1 2 3 4 5 6 7 8 9 10 11 12 13 |
import spacy_streamlit
def main(models: str, default_text: str):
models = [name.strip() for name in models.split(",")]
spacy_streamlit.visualize(models, default_text, visualizers=["ner"])
if __name__ == "__main__":
main(
models="model-best",
default_text="Nimetembelea sehemu kumi za vivutio hapa nchini Tanzania. ",
) |