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
unable to load the model in spanmarker
#10
by gangadher - opened
can we have config.json instead of gliner_config.json?
following error is occurd while loading the model with span marker
OSError: urchade/gliner_base does not appear to have a file named config.json. Checkout 'https://huggingface.co/urchade/gliner_base/main' for available files.
I also think it would be great if this was compatible with HF and SpanMarkerNER