Jacobo commited on
Commit
ff2b9e2
1 Parent(s): ac5d938

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -27,10 +27,10 @@ st.header("Enter text:")
27
  text = st.text_area("Greek text","φύσει μὲν οὖν αἴσθησιν ἔχοντα γίγνεται τὰ ζῷα, ἐκ δὲ ταύτης τοῖς μὲν αὐτῶν οὐκ ἐγγίγνεται μνήμη, τοῖς δʼ ἐγγίγνεται.")
28
 
29
 
30
- config = {"punct_chars": [".", ";", "·"]}
31
 
32
- nlp = spacy.load(spacy_model, exclude="sentencizer")
33
- nlp.add_pipe("sentencizer", config=config, before="parser")
34
 
35
 
36
  # Get the new pipeline order
27
  text = st.text_area("Greek text","φύσει μὲν οὖν αἴσθησιν ἔχοντα γίγνεται τὰ ζῷα, ἐκ δὲ ταύτης τοῖς μὲν αὐτῶν οὐκ ἐγγίγνεται μνήμη, τοῖς δʼ ἐγγίγνεται.")
28
 
29
 
30
+ #config = {"punct_chars": [".", ";", "·"]}
31
 
32
+ nlp = spacy.load(spacy_model, exclude="senter")
33
+ #nlp.add_pipe("sentencizer", config=config, before="parser")
34
 
35
 
36
  # Get the new pipeline order