Spaces:
Running
Running
Update app.py
Browse files26 unmodified lines2728293031323334353626 unmodified linestext = st.text_area("Greek text","φύσει μὲν οὖν αἴσθησιν ἔχοντα γίγνεται τὰ ζῷα, ἐκ δὲ ταύτης τοῖς μὲν αὐτῶν οὐκ ἐγγίγνεται μνήμη, τοῖς δʼ ἐγγίγνεται.")config = {"punct_chars": [".", ";", "·"]}nlp = spacy.load(spacy_model, exclude="sentencizer")nlp.add_pipe("sentencizer", config=config, before="parser")# Get the new pipeline order26 unmodified lines2728293031323334353626 unmodified linestext = st.text_area("Greek text","φύσει μὲν οὖν αἴσθησιν ἔχοντα γίγνεται τὰ ζῷα, ἐκ δὲ ταύτης τοῖς μὲν αὐτῶν οὐκ ἐγγίγνεται μνήμη, τοῖς δʼ ἐγγίγνεται.")#config = {"punct_chars": [".", ";", "·"]}nlp = spacy.load(spacy_model, exclude="senter")#nlp.add_pipe("sentencizer", config=config, before="parser")# Get the new pipeline order
app.py+3-3