Instructions to use urchade/gliner_medium-v2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- GLiNER
How to use urchade/gliner_medium-v2 with GLiNER:
from gliner import GLiNER model = GLiNER.from_pretrained("urchade/gliner_medium-v2") 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
Max_length error
#3
by Mohinik - opened
I am able to run the model successfully, but showing an error while running the model that length of the string (some number) and truncated to max_length = 384.
Please help me how to change this default value. I have changed max_length = 384 in config.json file, but still facing same error.
Can anyone please respond on my query?