Instructions to use ottema/gliner2-ptbr-v20 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- GLiNER
How to use ottema/gliner2-ptbr-v20 with GLiNER:
from gliner import GLiNER model = GLiNER.from_pretrained("ottema/gliner2-ptbr-v20") text = "Cristiano Ronaldo dos Santos Aveiro was born on 5 February 1985 in Funchal, Madeira, Portugal." labels = ["person", "date", "location"] entities = model.predict_entities(text, labels) for entity in entities: print(entity["text"], "=>", entity["label"]) - GLiNER2
How to use ottema/gliner2-ptbr-v20 with GLiNER2:
from gliner2 import AutoExtractor extractor = AutoExtractor.from_pretrained("ottema/gliner2-ptbr-v20") # Extract entities text = "Apple CEO Tim Cook announced iPhone 15 in Cupertino yesterday." result = extractor.extract_entities(text, ["company", "person", "product", "location"]) print(result) - Notebooks
- Google Colab
- Kaggle
Legacy checkpoint โ use ottema/gliner2-ptbr-harem
This repository contains an earlier experimental checkpoint and is not the canonical release.
Please use the canonical repo: https://huggingface.co/ottema/gliner2-ptbr-harem
This repo is kept for backward compatibility but will not receive updates.
- Downloads last month
- -
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐ Ask for provider support