Views
No views yet
1@inproceedings{tedeschi-etal-2021-wikineural-combined,
2 title = "{W}iki{NE}u{R}al: {C}ombined Neural and Knowledge-based Silver Data Creation for Multilingual {NER}",
3 author = "Tedeschi, Simone and
4 Maiorca, Valentino and
5 Campolungo, Niccol{\`o} and
6 Cecconi, Francesco and
7 Navigli, Roberto",
8 booktitle = "Findings of the Association for Computational Linguistics: EMNLP 2021",
9 month = nov,
10 year = "2021",
11 address = "Punta Cana, Dominican Republic",
12 publisher = "Association for Computational Linguistics",
13 url = "https://aclanthology.org/2021.findings-emnlp.215",
14 pages = "2521--2533",
15 abstract = "Multilingual Named Entity Recognition (NER) is a key intermediate task which is needed in many areas of NLP. In this paper, we address the well-known issue of data scarcity in NER, especially relevant when moving to a multilingual scenario, and go beyond current approaches to the creation of multilingual silver data for the task. We exploit the texts of Wikipedia and introduce a new methodology based on the effective combination of knowledge-based approaches and neural models, together with a novel domain adaptation technique, to produce high-quality training corpora for NER. We evaluate our datasets extensively on standard benchmarks for NER, yielding substantial improvements up to 6 span-based F1-score points over previous state-of-the-art systems for data creation.",
16}1from transformers import AutoTokenizer, AutoModelForTokenClassification
2from transformers import pipeline
3
4tokenizer = AutoTokenizer.from_pretrained("Babelscape/wikineural-multilingual-ner")
5model = AutoModelForTokenClassification.from_pretrained("Babelscape/wikineural-multilingual-ner")
6
7nlp = pipeline("ner", model=model, tokenizer=tokenizer, grouped_entities=True)
8example = "My name is Wolfgang and I live in Berlin"
9
10ner_results = nlp(example)
11print(ner_results)