💡 Found this resource helpful? Creating and maintaining open source AI models and datasets requires significant computational resources. If this work has been valuable to you, consider
supporting my research to help me continue building tools that benefit the entire AI community. Every contribution directly funds more open source innovation! ☕
It's important to note that
this model is universal and operates across all domains. However, if you are seeking performance metrics close to a 90/99% F1 score for a specific domain, you are encouraged to reach out via email to Michele Montebovi at
montebovi.michele@gmail.com. This direct contact allows for the possibility of customizing the model to achieve enhanced performance tailored to your unique entity recognition requirements in the Italian language.
This model is designed for Named Entity Recognition (NER) tasks, specifically tailored for the Italian language. It employs a zero-shot learning approach, enabling it to identify a wide range of entities without the need for specific training on those entities. This makes it incredibly versatile for various applications requiring entity extraction from Italian text.
You can test the model directly in your browser through the following Hugging Face Spaces link:
https://huggingface.co/spaces/DeepMount00/universal_ner_ita.
1from gliner import GLiNER
2
3model = GLiNER.from_pretrained("DeepMount00/universal_ner_ita")
4
5text = """
6Il comune di Castelrosso, con codice fiscale 80012345678, ha approvato il finanziamento di 15.000€ destinati alla ristrutturazione del parco giochi cittadino, affidando l'incarico alla società 'Verde Vivo Società Cooperativa', con sede legale in Corso della Libertà 45, Verona, da completarsi entro il 30/09/2024.
7"""
8
9labels = ["comune", "codice fiscale", "importo", "società", "indirizzo", "data di completamento"]
10
11entities = model.predict_entities(text, labels)
12
13max_length = max(len(entity["text"]) for entity in entities)
14
15for entity in entities:
16 padded_text = entity["text"].ljust(max_length)
17 print(f"{padded_text} => {entity['label']}")