Create README.md
Browse files
README.md
ADDED
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
language:
|
3 |
+
- en
|
4 |
+
license: mit
|
5 |
+
pipeline_tag: token-classification
|
6 |
+
model-index:
|
7 |
+
- name: punctual-bert-bg
|
8 |
+
results: []
|
9 |
+
widget:
|
10 |
+
- text: 'Човекът искащ безгрижно писане ме помоли да създам този модел.'
|
11 |
+
---
|
12 |
+
|
13 |
+
|
14 |
+
# punctual-bert-bg
|
15 |
+
|
16 |
+
## Usage
|
17 |
+
```python
|
18 |
+
from transformers import pipeline
|
19 |
+
|
20 |
+
|
21 |
+
MODEL_ID = "auhide/punctual-bert-bg"
|
22 |
+
|
23 |
+
from transformers import pipeline
|
24 |
+
|
25 |
+
|
26 |
+
punctuate = pipeline("token-classification", model=punctual_bert.model, tokenizer=punctual_bert.tokenizer)
|
27 |
+
punctuate("Човекът искащ безгрижно писане ме помоли да създам този модел.")
|
28 |
+
```
|
29 |
+
```bash
|
30 |
+
[{'entity': 'B-CMA',
|
31 |
+
'score': 0.95041466,
|
32 |
+
'index': 1,
|
33 |
+
'word': '▁Човекът',
|
34 |
+
'start': 0,
|
35 |
+
'end': 7},
|
36 |
+
{'entity': 'I-CMA',
|
37 |
+
'score': 0.95229745,
|
38 |
+
'index': 2,
|
39 |
+
'word': '▁иска',
|
40 |
+
'start': 7,
|
41 |
+
'end': 12},
|
42 |
+
{'entity': 'B-CMA',
|
43 |
+
'score': 0.95945585,
|
44 |
+
'index': 5,
|
45 |
+
'word': '▁писане',
|
46 |
+
'start': 23,
|
47 |
+
'end': 30},
|
48 |
+
{'entity': 'I-CMA',
|
49 |
+
'score': 0.90768945,
|
50 |
+
'index': 6,
|
51 |
+
'word': '▁ме',
|
52 |
+
'start': 30,
|
53 |
+
'end': 33}]
|
54 |
+
```
|