Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -96,7 +96,7 @@ def remove_disfluency(example, prediction):
|
|
| 96 |
import gradio as gr
|
| 97 |
|
| 98 |
def ner(text):
|
| 99 |
-
text = " ".
|
| 100 |
|
| 101 |
# Some words in lowercase like "đà nẵng" will get error (due to vncorenlp)
|
| 102 |
text = text.replace("đà ", " đà ")
|
|
|
|
| 96 |
import gradio as gr
|
| 97 |
|
| 98 |
def ner(text):
|
| 99 |
+
text = " ".join(rdrsegmenter.word_segment(text))
|
| 100 |
|
| 101 |
# Some words in lowercase like "đà nẵng" will get error (due to vncorenlp)
|
| 102 |
text = text.replace("đà ", " đà ")
|