tomaarsen HF staff commited on
Commit
170e342
1 Parent(s): cde51d4

Update README with installable gliner; add library_name

Browse files
Files changed (1) hide show
  1. README.md +5 -6
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 download the GLiNER repository and install its dependencies:
21
  ```
22
- !git clone https://github.com/urchade/GLiNER.git
23
- %cd GLiNER
24
- !pip install -r requirements.txt
25
  ```
26
 
27
  ## Usage
28
- 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`.
29
 
30
  ```python
31
- from model import GLiNER
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