Update README.md
Browse files
README.md
CHANGED
|
@@ -28,7 +28,12 @@ Such architecture brings several advantages over uni-encoder GLiNER:
|
|
| 28 |
|
| 29 |
However, it has some drawbacks such as a lack of inter-label interactions that make it hard for the model to disambiguate semantically similar but contextually different entities.
|
| 30 |
|
| 31 |
-
### Usage
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 32 |
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`.
|
| 33 |
|
| 34 |
```python
|
|
|
|
| 28 |
|
| 29 |
However, it has some drawbacks such as a lack of inter-label interactions that make it hard for the model to disambiguate semantically similar but contextually different entities.
|
| 30 |
|
| 31 |
+
### Installation & Usage
|
| 32 |
+
Install or update the gliner package:
|
| 33 |
+
```bash
|
| 34 |
+
pip install gliner -U
|
| 35 |
+
```
|
| 36 |
+
|
| 37 |
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`.
|
| 38 |
|
| 39 |
```python
|