Instructions to use urchade/gliner_base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- GLiNER
How to use urchade/gliner_base with GLiNER:
from gliner import GLiNER model = GLiNER.from_pretrained("urchade/gliner_base") 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"]) - Notebooks
- Google Colab
- Kaggle
Error, can't resolve
#6
by tshroveOntelio - opened
you can modify your code and remove the assign keyword, or update transformer version
similar error: https://github.com/urchade/GLiNER/issues/7
