

# punctual-bert-bg

## Usage
```python
from transformers import pipeline


MODEL_ID = "auhide/punctual-bert-bg"

punctuate = pipeline("token-classification", model=MODEL_ID, tokenizer=MODEL_ID)
punctuate("Човекът искащ безгрижно писане ме помоли да създам този модел.")
```
```bash
[{'entity': 'B-CMA',
  'score': 0.95041466,
  'index': 1,
  'word': '▁Човекът',
  'start': 0,
  'end': 7},
 {'entity': 'I-CMA',
  'score': 0.95229745,
  'index': 2,
  'word': '▁иска',
  'start': 7,
  'end': 12},
 {'entity': 'B-CMA',
  'score': 0.95945585,
  'index': 5,
  'word': '▁писане',
  'start': 23,
  'end': 30},
 {'entity': 'I-CMA',
  'score': 0.90768945,
  'index': 6,
  'word': '▁ме',
  'start': 30,
  'end': 33}]
```

Basically, `B-CMA` tags the token that's before the comma, and `I-CMA` tags the token after the comma.

Therefore, if we place the commas based on these tags, the result is:

*"Човекът, искащ безгрижно писане, ме помоли да създам този модел."*
{"language": ["bg"], "license": "mit", "pipeline_tag": "token-classification", "widget": [{"text": "\u0427\u043e\u0432\u0435\u043a\u044a\u0442 \u0438\u0441\u043a\u0430\u0449 \u0431\u0435\u0437\u0433\u0440\u0438\u0436\u043d\u043e \u043f\u0438\u0441\u0430\u043d\u0435 \u043c\u0435 \u043f\u043e\u043c\u043e\u043b\u0438 \u0434\u0430 \u0441\u044a\u0437\u0434\u0430\u043c \u0442\u043e\u0437\u0438 \u043c\u043e\u0434\u0435\u043b."}], "model-index": [{"name": "punctual-bert-bg", "results": []}]}
transformers safetensors bert token-classification bg license:mit autotrain_compatible endpoints_compatible region:us