Token Classification
GLiNER
PyTorch
multilingual

Update README with installable gliner; add library_name

#6
by tomaarsen HF staff - opened
Files changed (1) hide show
  1. README.md +5 -6
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 download the GLiNER repository and install its dependencies:
23
  ```
24
- !git clone https://github.com/urchade/GLiNER.git
25
- %cd GLiNER
26
- !pip install -r requirements.txt
27
  ```
28
 
29
  ## Usage
30
- Once you've downloaded the GLiNER repository, you can import the GLiNER class from the `model` file. You can then load this model using `GLiNER.from_pretrained` and predict entities with `predict_entities`.
31
 
32
  ```python
33
- from model import GLiNER
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