Update README with installable gliner; add library_name
#6
by
tomaarsen
HF Staff
- opened
README.md
CHANGED
|
@@ -5,6 +5,7 @@ language:
|
|
| 5 |
pipeline_tag: token-classification
|
| 6 |
datasets:
|
| 7 |
- Universal-NER/Pile-NER-type
|
|
|
|
| 8 |
---
|
| 9 |
|
| 10 |
# Model Card for GLiNER-multi
|
|
@@ -19,18 +20,16 @@ This version has been trained on the **Pile-NER** dataset (Research purpose). Co
|
|
| 19 |
* Repository: https://github.com/urchade/GLiNER
|
| 20 |
|
| 21 |
## Installation
|
| 22 |
-
To use this model, you must
|
| 23 |
```
|
| 24 |
-
!
|
| 25 |
-
%cd GLiNER
|
| 26 |
-
!pip install -r requirements.txt
|
| 27 |
```
|
| 28 |
|
| 29 |
## Usage
|
| 30 |
-
Once you've downloaded the GLiNER
|
| 31 |
|
| 32 |
```python
|
| 33 |
-
from
|
| 34 |
|
| 35 |
model = GLiNER.from_pretrained("urchade/gliner_multi")
|
| 36 |
|
|
|
|
| 5 |
pipeline_tag: token-classification
|
| 6 |
datasets:
|
| 7 |
- Universal-NER/Pile-NER-type
|
| 8 |
+
library_name: gliner
|
| 9 |
---
|
| 10 |
|
| 11 |
# Model Card for GLiNER-multi
|
|
|
|
| 20 |
* Repository: https://github.com/urchade/GLiNER
|
| 21 |
|
| 22 |
## Installation
|
| 23 |
+
To use this model, you must install the GLiNER Python library:
|
| 24 |
```
|
| 25 |
+
!pip install gliner
|
|
|
|
|
|
|
| 26 |
```
|
| 27 |
|
| 28 |
## Usage
|
| 29 |
+
Once you've downloaded the GLiNER library, you can import the GLiNER class. You can then load this model using `GLiNER.from_pretrained` and predict entities with `predict_entities`.
|
| 30 |
|
| 31 |
```python
|
| 32 |
+
from gliner import GLiNER
|
| 33 |
|
| 34 |
model = GLiNER.from_pretrained("urchade/gliner_multi")
|
| 35 |
|