Instructions to use knowledgator/gliner-x-small-v0.5 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- GLiNER
How to use knowledgator/gliner-x-small-v0.5 with GLiNER:
from gliner import GLiNER model = GLiNER.from_pretrained("knowledgator/gliner-x-small-v0.5") 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
Export to ONNX
#1
by Unt1l1f1nd - opened
Hello, this model is awesome, please I need to export this model to ONNX . How to do it? Thank you
Hello, we will provide ONNX versions of this model.
Hello, we will provide ONNX versions of this model.
Thank you very much! Do you know, whether it is possible to run this in transformers.js pipeline?
It's not possible, but we have developed [GLiNER.js](https://github.com/Ingvarstep/GLiNER.js for that.