Spaces:
Runtime error
Runtime error
spitzc32
commited on
Commit
·
a791bf2
1
Parent(s):
a6944e3
testing
Browse files
app.py
CHANGED
|
@@ -34,14 +34,15 @@ def model(word: str):
|
|
| 34 |
tagger.predict(txt)
|
| 35 |
labels, tags = [], []
|
| 36 |
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
|
| 41 |
-
return pn.pane.Markdown(f"""{
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
|
|
|
| 45 |
|
| 46 |
def get_tag_results(_):
|
| 47 |
return pn.Column(
|
|
|
|
| 34 |
tagger.predict(txt)
|
| 35 |
labels, tags = [], []
|
| 36 |
|
| 37 |
+
# for entity in txt.get_spans('ner'):
|
| 38 |
+
# labels.append(entity.text)
|
| 39 |
+
# tags.append(entity.get_label("ner").value)
|
| 40 |
|
| 41 |
+
#return pn.pane.Markdown(f"""{
|
| 42 |
+
# 'labels': {labels},
|
| 43 |
+
# 'tags': {tags}
|
| 44 |
+
# }""")
|
| 45 |
+
return pn.pane.Markdown("Label fix")
|
| 46 |
|
| 47 |
def get_tag_results(_):
|
| 48 |
return pn.Column(
|