Text Classification
Transformers
Safetensors
GLiNER2
English
Text classification
Intent classification
Sentiment Analysis
Topic classification
Named Entity Recognition
decision-model
Instructions to use fastino/GLiNER2.5-Decide with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use fastino/GLiNER2.5-Decide with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="fastino/GLiNER2.5-Decide")# pip install -U transformers accelerate # Load model directly from transformers import Gliner2ForSchemaExtraction model = Gliner2ForSchemaExtraction.from_pretrained("fastino/GLiNER2.5-Decide", device_map="auto") - GLiNER2
How to use fastino/GLiNER2.5-Decide with GLiNER2:
from gliner2 import AutoExtractor extractor = AutoExtractor.from_pretrained("fastino/GLiNER2.5-Decide") # Extract entities text = "Apple CEO Tim Cook announced iPhone 15 in Cupertino yesterday." result = extractor.extract_entities(text, ["company", "person", "product", "location"]) print(result) - Inference
- Notebooks
- Google Colab
- Kaggle
Install with the local extra: pip install "gliner2[local]"
#13
by kzfastino - opened
README.md
CHANGED
|
@@ -64,7 +64,7 @@ Outputs below are potential results for these inputs. They show the shape `class
|
|
| 64 |
## Install
|
| 65 |
|
| 66 |
```bash
|
| 67 |
-
pip install gliner2
|
| 68 |
```
|
| 69 |
|
| 70 |
```python
|
|
|
|
| 64 |
## Install
|
| 65 |
|
| 66 |
```bash
|
| 67 |
+
pip install "gliner2[local]"
|
| 68 |
```
|
| 69 |
|
| 70 |
```python
|