Downloads · 30 days
0
INIST-CNRS/rapido
rapido is a token classification model from INIST-CNRS. Use it when you need labels on individual words, such as names. It is set up for flair.
This model was trained with and meant to be used with datas from Rapido project. The package flair was used for the training. The following versions of Flair and Transformers are required : - transformers == 4.41.2 -…
Downloads · 30 days
0
Access
Public
Updated Mar 17, 2025
Repo size
1.4 GB
Likes
0
Public
Click a slice to open those files.
.pt1.4 GB · 100%
From the Hugging Face model README
This model was trained with and meant to be used with datas from Rapido project. The package flair was used for the training. The following versions of Flair and Transformers are required :
from flair.models import SequenceTagger
from flair.data import Sentence
tagger = SequenceTagger.load('rapido-model.pt')
your_sentence = "Put your sentence here"
sentence = Sentence(your_sentence)
self.tagger.predict(sentences)
for sentence in sentences:
for entity in sentence.get_spans('ner'):
if entity.tag == "LOC":
entity_txt = entity.text #get the entity
entity_score = '%.3f' % entity.score #get the score
print(entity_txt,score)
precision recall f1-score support
LOC 0.8790 0.8563 0.8675 891