Update README with installable gliner; add library_name
#1
by
tomaarsen
HF staff
- opened
README.md
CHANGED
@@ -2,6 +2,7 @@
|
|
2 |
license: cc-by-nc-4.0
|
3 |
datasets:
|
4 |
- Universal-NER/Pile-NER-type
|
|
|
5 |
---
|
6 |
|
7 |
# Model Card for GLiNER-M
|
@@ -16,18 +17,16 @@ This version has been trained on the **Pile-NER** dataset (Research purpose)
|
|
16 |
* Repository: https://github.com/urchade/GLiNER
|
17 |
|
18 |
## Installation
|
19 |
-
To use this model, you must
|
20 |
```
|
21 |
-
!
|
22 |
-
%cd GLiNER
|
23 |
-
!pip install -r requirements.txt
|
24 |
```
|
25 |
|
26 |
## Usage
|
27 |
-
Once you've downloaded the GLiNER
|
28 |
|
29 |
```python
|
30 |
-
from
|
31 |
|
32 |
model = GLiNER.from_pretrained("urchade/gliner_medium")
|
33 |
|
|
|
2 |
license: cc-by-nc-4.0
|
3 |
datasets:
|
4 |
- Universal-NER/Pile-NER-type
|
5 |
+
library_name: gliner
|
6 |
---
|
7 |
|
8 |
# Model Card for GLiNER-M
|
|
|
17 |
* Repository: https://github.com/urchade/GLiNER
|
18 |
|
19 |
## Installation
|
20 |
+
To use this model, you must install the GLiNER Python library:
|
21 |
```
|
22 |
+
!pip install gliner
|
|
|
|
|
23 |
```
|
24 |
|
25 |
## Usage
|
26 |
+
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`.
|
27 |
|
28 |
```python
|
29 |
+
from gliner import GLiNER
|
30 |
|
31 |
model = GLiNER.from_pretrained("urchade/gliner_medium")
|
32 |
|