Serega6678 commited on
Commit
f877f67
1 Parent(s): b3658ce

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +5 -2
README.md CHANGED
@@ -28,17 +28,20 @@ NuZero span is a more powerful version of GLiNER-large-v2.1, surpassing it by 4%
28
  !pip install gliner
29
  ```
30
 
 
 
31
  ```python
32
  from gliner import GLiNER
33
 
34
  model = GLiNER.from_pretrained("numind/NuZero_span")
35
 
 
 
 
36
  text = """
37
 
38
  """
39
 
40
- labels = ["person", "award", "date", "competitions", "teams"]
41
-
42
  entities = model.predict_entities(text, labels)
43
 
44
  for entity in entities:
 
28
  !pip install gliner
29
  ```
30
 
31
+ **NuZero requires labels to be lower-cased**
32
+
33
  ```python
34
  from gliner import GLiNER
35
 
36
  model = GLiNER.from_pretrained("numind/NuZero_span")
37
 
38
+ # NuZero requires labels to be lower-cased!
39
+ labels = ["person", "award", "date", "competitions", "teams"]
40
+
41
  text = """
42
 
43
  """
44
 
 
 
45
  entities = model.predict_entities(text, labels)
46
 
47
  for entity in entities: