File size: 1,802 Bytes
72a3a56 6cc646e 61220dc 6cc646e 9ef7107 6cc646e 61220dc 6cc646e 9ef7107 e5a036d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 |
---
datasets:
- svilens/auto-tires-ner
language:
- en
- bg
base_model:
- knowledgator/gliner-multitask-large-v0.5
tags:
- ner
- automotive
- tires
---
# Overview
This is a named entity recognition model based on `knowledgator/gliner-multitask-large-v0.5`, specifically fine-tuned for automotive tire attributes extraction. The fine-tuning dataset consists of queries in Bulgarian.
# How to use
## Installation
```
pip install gliner
```
## Usage
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.
```python
from gliner import GLiNER
model = GLiNER.from_pretrained("svilens/gliner-multitask-large-v0.5-auto-tires")
text = "Търся зимни гуми 225/65 R17 91V runflat за Honda CR-V 2022"
labels = [
"tyre_size", "tyre_type", "tyre_width",
"tyre_aspect_ratio", "tyre_diameter",
"tyre_load_index", "tyre_speed_rating",
"tyre_type", "tyre_season",
"car_make", "car_model", "car_year"
]
entities = model.predict_entities(text, labels)
for entity in entities:
print(entity["text"], "=>", entity["label"])
```
Output:
```
зимни => tyre_season
225 => tyre_width
65 => tyre_aspect_ratio
17 => tyre_diameter
runflat => tyre_type
Honda => car_make
CR-V => car_model
2022 => car_year
```
## Known issues
- As shown above, load index and speed rating are sometimes not properly recognized. More training examples with these two attributes are required.
- The training data contains `tyre_size` entity that captures the combination of width, ratio and diameter, but these three are additionally provided as standalone entities. Therefore, the model can output either, or both entities, and this inconsistency might cause some inconvenience. |