[NER-fine-tuned-BETO] is a NER model that was fine-tuned from BETO on the 2002 Conll and the WikiNEuRal spanish datasets.
Model was trained on the Conll 2002 train dataset (~8320 sentences) and a bootstrapped dataset of WikiNEuRal, where we re-evaluate the dataset and only keep the sentences where all the labels matched the predictions made.
Model was evaluated on the test dataset of Conll2002.
1from transformers import AutoTokenizer, AutoModelForTokenClassification
2
3tokenizer = AutoTokenizer.from_pretrained("NazaGara/NER-fine-tuned-BETO", use_auth_token=True)
4model = AutoModelForTokenClassification.from_pretrained("NazaGara/NER-fine-tuned-BETO", use_auth_token=True)
5
6nlp = pipeline('ner', model=model, tokenizer=tokenizer, aggregation_strategy="simple")
7nlp('Ignacio se fue de viaje por Buenos aires')
8
9[{'entity_group': 'PER',
10 'score': 0.9997764,
11 'word': 'Ignacio',
12 'start': 0,
13 'end': 7},
14 {'entity_group': 'LOC',
15 'score': 0.9997932,
16 'word': 'Buenos aires',
17 'start': 28,
18 'end': 40}]
19