Spaces:
Runtime error
Runtime error
acumplid
commited on
Commit
·
eee28ed
1
Parent(s):
99fa792
Included description
Browse files
app.py
CHANGED
@@ -17,8 +17,16 @@ def ner(text):
|
|
17 |
output = ner_pipeline(text)
|
18 |
return {"text": text, "entities": output}
|
19 |
|
20 |
-
demo = gr.Interface(
|
21 |
-
|
22 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
23 |
|
24 |
demo.launch()
|
|
|
17 |
output = ner_pipeline(text)
|
18 |
return {"text": text, "entities": output}
|
19 |
|
20 |
+
demo = gr.Interface(
|
21 |
+
ner,
|
22 |
+
gr.Textbox(placeholder="Enter sentence here..."),
|
23 |
+
gr.HighlightedText(),
|
24 |
+
**AinaGradioTheme().get_kwargs(),
|
25 |
+
flagging_options=None,
|
26 |
+
article="""
|
27 |
+
Multiner is a Named Entity Recognition (NER) model for the Catalan language fine-tuned from the [BERTa] model, a RoBERTa base model pre-trained on a medium-size corpus collected from publicly available corpora and crawlers (check the BERTa model card for more details).
|
28 |
+
It has been trained with a dataset (CEIL: Catalan Entity Identification and Linking ) that contains 9 main types and 52 subtypes on all kinds of short texts, with almost 59K documents.
|
29 |
+
Aquest resultat ha estat impulsat i finançat per la Generalitat de Catalunya mitjançant el projecte Aina (https://projecteaina.cat/).
|
30 |
+
""")
|
31 |
|
32 |
demo.launch()
|