svilens commited on
Commit
9ef7107
1 Parent(s): 61220dc

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +17 -2
README.md CHANGED
@@ -26,7 +26,7 @@ pip install gliner
26
  ## Usage
27
  The example below includes all labels that the model was fine-tuned on. Although it supports extracting unseen entities, the accuracy of any other labels is not guaranteed.
28
 
29
- ```
30
  from gliner import GLiNER
31
 
32
  model = GLiNER.from_pretrained("svilens/gliner-multitask-large-v0.5-auto-tires")
@@ -45,4 +45,19 @@ entities = model.predict_entities(text, labels)
45
 
46
  for entity in entities:
47
  print(entity["text"], "=>", entity["label"])
48
- ```
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
26
  ## Usage
27
  The example below includes all labels that the model was fine-tuned on. Although it supports extracting unseen entities, the accuracy of any other labels is not guaranteed.
28
 
29
+ ```python
30
  from gliner import GLiNER
31
 
32
  model = GLiNER.from_pretrained("svilens/gliner-multitask-large-v0.5-auto-tires")
 
45
 
46
  for entity in entities:
47
  print(entity["text"], "=>", entity["label"])
48
+ ```
49
+
50
+ Output:
51
+ ```
52
+ зимни => tyre_season
53
+ 225 => tyre_width
54
+ 65 => tyre_aspect_ratio
55
+ 17 => tyre_diameter
56
+ runflat => tyre_type
57
+ Honda => car_make
58
+ CR-V => car_model
59
+ 2022 => car_year
60
+ ```
61
+
62
+ ## Known issues
63
+ As shown above, load index and speed rating are sometimes not properly recognized. More training examples with these two attributes are required.