GLiNER2
Safetensors
English
extractor
Text classification
Named Entity Recognition
Relation Extraction
Intent classification
Sentiment Analysis
Topic classification
Structured extraction
Json extraction
Instructions to use fastino/gliner2-base-v1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- GLiNER2
How to use fastino/gliner2-base-v1 with GLiNER2:
from gliner2 import AutoExtractor extractor = AutoExtractor.from_pretrained("fastino/gliner2-base-v1") # 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 config.json from fastino/gliner2-base-v1: direct link, hf CLI and curl.
- Browser
- Download file 236 Bytes
-
https://huggingface.co/fastino/gliner2-base-v1/resolve/refs%2Fpr%2F11/config.json
- Command line
-
hf download hf://fastino/gliner2-base-v1@refs/pr/11/config.json
-
curl -L -o config.json https://huggingface.co/fastino/gliner2-base-v1/resolve/refs%2Fpr%2F11/config.json
236 Bytes
| { | |
| "_attn_implementation_autoset": true, | |
| "counting_layer": "count_lstm_v2", | |
| "max_width": 8, | |
| "model_name": "microsoft/deberta-v3-base", | |
| "model_type": "extractor", | |
| "token_pooling": "first", | |
| "transformers_version": "4.51.0" | |
| } | |