Michal commited on
Commit
8ca297f
·
verified ·
1 Parent(s): 1b8ace6

Upload folder using huggingface_hub

Browse files
Files changed (3) hide show
  1. README.md +105 -0
  2. config.json +45 -0
  3. pytorch_model.bin +3 -0
README.md ADDED
@@ -0,0 +1,105 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: cc-by-sa-4.0
3
+ language:
4
+ - te
5
+ tags:
6
+ - segmentation
7
+ - tokenization
8
+ - combo-seg
9
+ - universal-dependencies
10
+ datasets:
11
+ - universal_dependencies
12
+ model-name: combo-seg-xlm-roberta-base-telugu-mtg-ud2.17
13
+ pipeline_tag: token-classification
14
+ ---
15
+
16
+ # COMBO-SEG Model for Telugu
17
+
18
+ ## Model Description
19
+
20
+ This is a Telugu-language character-level segmentation model based on [COMBO-SEG](https://gitlab.clarin-pl.eu/syntactic-tools/combo-seg), an open-source text segmentation system. It performs:
21
+
22
+ - sentence segmentation
23
+ - tokenisation (including multi-word token detection)
24
+
25
+ The Telugu model uses ``FacebookAI/xlm-roberta-base`` as its base encoder and is trained on [UD_Telugu-MTG](https://github.com/UniversalDependencies/UD_Telugu-MTG) (UD v2.17).
26
+
27
+
28
+ ## Evaluation
29
+
30
+ | Metric | F1 |
31
+ | ------ | -- |
32
+ | Tokens | 99.77 |
33
+ | Words | 99.40 |
34
+ | Sentences | 97.71 |
35
+
36
+
37
+
38
+ ## Usage
39
+
40
+ Install the library from PyPI:
41
+
42
+ ```bash
43
+ pip install combo-seg
44
+ ```
45
+
46
+ ```python
47
+ from combo_seg import ComboSeg
48
+
49
+ # Load a pre-trained model
50
+ nlp = ComboSeg("Telugu")
51
+
52
+ # Segment raw text — returns Document with hierarchy: Document -> Turn -> Sentence -> Token
53
+ doc = nlp("Example sentence.")
54
+
55
+ # Inspect results
56
+ for turn in doc.turns:
57
+ for sentence in turn.sentences:
58
+ print(f"Sentence: {sentence.text}")
59
+ for token in sentence.tokens:
60
+ if token.is_multi_word:
61
+ print(f" MWT: {token.text} -> {token.subwords}")
62
+ else:
63
+ print(f" Token: {token.text}")
64
+ ```
65
+
66
+ Or load directly from HuggingFace:
67
+
68
+ ```python
69
+ from combo_seg import ComboSeg
70
+
71
+ nlp = ComboSeg.from_pretrained("clarin-pl/combo-seg-xlm-roberta-base-telugu-mtg-ud2.17")
72
+ doc = nlp("Example sentence.")
73
+ ```
74
+
75
+ ## License
76
+
77
+ The training data license: cc-by-sa-4.0 is derived from the Universal Dependencies treebank. For the full license terms of each treebank, please refer to the corresponding `LICENSE.txt` file in the treebank repository:
78
+
79
+ - [UD_Telugu-MTG LICENSE.txt](https://github.com/UniversalDependencies/UD_Telugu-MTG/blob/master/LICENSE.txt)
80
+
81
+
82
+ ## Citation
83
+
84
+ If you use this model, please cite:
85
+
86
+ Ulewicz, M., & Wróblewska, A. (2026). *COMBO-SEG Models Trained on UD v2.17*. Zenodo. https://doi.org/10.5281/zenodo.19651441
87
+
88
+ ```bibtex
89
+ @software{combo_seg_2026,
90
+ author = {Ulewicz, Michał and Wróblewska, Alina},
91
+ title = {{COMBO-SEG} Models Trained on {UD} v2.17},
92
+ year = {2026},
93
+ publisher = {Zenodo},
94
+ doi = {10.5281/zenodo.19651441},
95
+ url = {https://doi.org/10.5281/zenodo.19651441}
96
+ }
97
+ ```
98
+
99
+
100
+
101
+ ## Resources
102
+
103
+ - COMBO-SEG: [https://gitlab.clarin-pl.eu/syntactic-tools/combo-seg](https://gitlab.clarin-pl.eu/syntactic-tools/combo-seg)
104
+ - UD_Telugu-MTG: [https://github.com/UniversalDependencies/UD_Telugu-MTG](https://github.com/UniversalDependencies/UD_Telugu-MTG)
105
+
config.json ADDED
@@ -0,0 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "naming": {
3
+ "project": "clarin-pl",
4
+ "models_prefix": "combo-seg",
5
+ "base_model_short": "xlm-roberta-base",
6
+ "ud_version": "2.17"
7
+ },
8
+ "data": {
9
+ "language": "Telugu",
10
+ "treebanks": [
11
+ "MTG"
12
+ ],
13
+ "ud_path": "data/ud/ud-treebanks-v2.17",
14
+ "batch_size": 8
15
+ },
16
+ "model": {
17
+ "base_model": "FacebookAI/xlm-roberta-base",
18
+ "window_size": 510,
19
+ "stride": 256
20
+ },
21
+ "training": {
22
+ "epochs": 20,
23
+ "patience": null,
24
+ "lr": 2e-05,
25
+ "head_lr": 0.001,
26
+ "warmup_ratio": 0.1,
27
+ "max_grad_norm": 1.0,
28
+ "seed": 42
29
+ },
30
+ "wandb": {
31
+ "enabled": true,
32
+ "project": "combo-seg",
33
+ "entity": null,
34
+ "run_name": null,
35
+ "tags": [
36
+ "full-finetune",
37
+ "FacebookAI/xlm-roberta-base",
38
+ "mtg",
39
+ "ud2.17",
40
+ "Telugu"
41
+ ]
42
+ },
43
+ "model_name": "combo-seg-xlm-roberta-base-telugu-mtg-ud2.17",
44
+ "repo_id": "clarin-pl/combo-seg-xlm-roberta-base-telugu-mtg-ud2.17"
45
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0b32e2096a8cd5a3a7083f763bb74472a989080861c3d0c64153b58464e00bf7
3
+ size 1114773902