Update README with installable gliner; add library_name (#1)
Browse files- Update README with installable gliner; add library_name (170e342d91b786e066e6d38c1612aa3b351ed51a)
Co-authored-by: Tom Aarsen <[email protected]>
README.md
CHANGED
@@ -3,6 +3,7 @@ license: apache-2.0
|
|
3 |
datasets:
|
4 |
- numind/NuNER
|
5 |
pipeline_tag: token-classification
|
|
|
6 |
---
|
7 |
|
8 |
# Model Card for GLiNER-large-v2
|
@@ -17,18 +18,16 @@ This version has been trained on the **NuNER** dataset (commercially permissive)
|
|
17 |
* Repository: https://github.com/urchade/GLiNER
|
18 |
|
19 |
## Installation
|
20 |
-
To use this model, you must
|
21 |
```
|
22 |
-
!
|
23 |
-
%cd GLiNER
|
24 |
-
!pip install -r requirements.txt
|
25 |
```
|
26 |
|
27 |
## Usage
|
28 |
-
Once you've downloaded the GLiNER
|
29 |
|
30 |
```python
|
31 |
-
from
|
32 |
|
33 |
model = GLiNER.from_pretrained("urchade/gliner_largev2")
|
34 |
|
|
|
3 |
datasets:
|
4 |
- numind/NuNER
|
5 |
pipeline_tag: token-classification
|
6 |
+
library_name: gliner
|
7 |
---
|
8 |
|
9 |
# Model Card for GLiNER-large-v2
|
|
|
18 |
* Repository: https://github.com/urchade/GLiNER
|
19 |
|
20 |
## Installation
|
21 |
+
To use this model, you must install the GLiNER Python library:
|
22 |
```
|
23 |
+
!pip install gliner
|
|
|
|
|
24 |
```
|
25 |
|
26 |
## Usage
|
27 |
+
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`.
|
28 |
|
29 |
```python
|
30 |
+
from gliner import GLiNER
|
31 |
|
32 |
model = GLiNER.from_pretrained("urchade/gliner_largev2")
|
33 |
|