Instructions to use mortsn/handler-gliner2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- GLiNER2
How to use mortsn/handler-gliner2 with GLiNER2:
from gliner2 import AutoExtractor extractor = AutoExtractor.from_pretrained("mortsn/handler-gliner2") # 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
Download calibration.json from mortsn/handler-gliner2: direct link, hf CLI and curl.
- Browser
- Download file 234 Bytes
-
https://huggingface.co/mortsn/handler-gliner2/resolve/main/calibration.json
- Command line
-
hf download hf://mortsn/handler-gliner2/calibration.json
-
curl -L -o calibration.json https://huggingface.co/mortsn/handler-gliner2/resolve/main/calibration.json
234 Bytes
| {"temperature": 2.55, "fitted_on": "gliner2.5-base-v1-gcall held-out rows (split by utterance id), action + target groups, NLL", "model": "fastino/gliner2.5-base-v1 fine-tuned on the web game GLiClass data, 7 classification groups"} | |