Instructions to use urchade/gliner_multi with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- GLiNER
How to use urchade/gliner_multi with GLiNER:
from gliner import GLiNER model = GLiNER.from_pretrained("urchade/gliner_multi") 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
Update README.md
#7
by tomdkt - opened
README.md
CHANGED
|
@@ -62,7 +62,7 @@ European Championship => competitions
|
|
| 62 |
```
|
| 63 |
|
| 64 |
```python
|
| 65 |
-
from
|
| 66 |
|
| 67 |
model = GLiNER.from_pretrained("urchade/gliner_multi")
|
| 68 |
|
|
|
|
| 62 |
```
|
| 63 |
|
| 64 |
```python
|
| 65 |
+
from gliner import GLiNER
|
| 66 |
|
| 67 |
model = GLiNER.from_pretrained("urchade/gliner_multi")
|
| 68 |
|