DeepMount00 commited on
Commit
e34a405
1 Parent(s): cff20ff

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +26 -1
README.md CHANGED
@@ -1,4 +1,29 @@
1
  ---
2
  license: apache-2.0
3
  ---
4
- Still needs some work to improve performance, but it's good—almost like [DeepMount00/universal_ner_ita](https://huggingface.co/DeepMount00/universal_ner_ita).
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  license: apache-2.0
3
  ---
4
+ Still needs some work to improve performance, but it's good—almost like [DeepMount00/universal_ner_ita](https://huggingface.co/DeepMount00/universal_ner_ita).
5
+
6
+
7
+ ## Installation
8
+ To use this model, you must install the GLiNER Python library:
9
+ ```
10
+ !pip install gliner
11
+ ```
12
+
13
+ ## Usage
14
+ 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`.
15
+
16
+ ```python
17
+ from gliner import GLiNER
18
+
19
+ model = GLiNER.from_pretrained("DeepMount00/GLiNER_ITA_SMALL")
20
+
21
+ text = """..."""
22
+
23
+ labels = ["label1", "label2"]
24
+
25
+ entities = model.predict_entities(text, labels)
26
+
27
+ for entity in entities:
28
+ print(entity["text"], "=>", entity["label"])
29
+ ```