gonzalez-agirre
commited on
Commit
•
33f9d6c
1
Parent(s):
6b8afec
Upload model.
Browse files- README.md +97 -0
- config.json +67 -0
- merges.txt +0 -0
- pytorch_model.bin +3 -0
- special_tokens_map.json +1 -0
- tokenizer.json +0 -0
- tokenizer_config.json +1 -0
- vocab.json +0 -0
README.md
CHANGED
@@ -1,3 +1,100 @@
|
|
1 |
---
|
|
|
|
|
|
|
|
|
|
|
2 |
license: apache-2.0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
---
|
2 |
+
|
3 |
+
language:
|
4 |
+
|
5 |
+
- ca
|
6 |
+
|
7 |
license: apache-2.0
|
8 |
+
|
9 |
+
tags:
|
10 |
+
|
11 |
+
- "catalan"
|
12 |
+
|
13 |
+
- "part of speech tagging"
|
14 |
+
|
15 |
+
- "pos"
|
16 |
+
|
17 |
+
- "CaText"
|
18 |
+
|
19 |
+
- "Catalan Textual Corpus"
|
20 |
+
|
21 |
+
datasets:
|
22 |
+
|
23 |
+
- "universal_dependencies"
|
24 |
+
|
25 |
+
metrics:
|
26 |
+
|
27 |
+
- f1
|
28 |
+
|
29 |
+
inference:
|
30 |
+
parameters:
|
31 |
+
aggregation_strategy: "first"
|
32 |
+
|
33 |
+
model-index:
|
34 |
+
- name: roberta-base-ca-v2-cased-pos
|
35 |
+
results:
|
36 |
+
- task:
|
37 |
+
type: token-classification
|
38 |
+
dataset:
|
39 |
+
type: universal_dependencies
|
40 |
+
name: Ancora-ca-POS
|
41 |
+
metrics:
|
42 |
+
- name: F1
|
43 |
+
type: f1
|
44 |
+
value: 0.9909
|
45 |
+
|
46 |
+
widget:
|
47 |
+
|
48 |
+
- text: "Em dic Lluïsa i visc a Santa Maria del Camí."
|
49 |
+
|
50 |
+
- text: "L'Aina, la Berta i la Norma són molt amigues."
|
51 |
+
|
52 |
+
- text: "El Martí llegeix el Cavall Fort."
|
53 |
+
|
54 |
---
|
55 |
+
|
56 |
+
# Catalan BERTa-v2 (roberta-base-ca-v2) finetuned for Part-of-speech-tagging (POS)
|
57 |
+
|
58 |
+
The **roberta-base-ca-v2-cased-pos** is a Part-of-speech-tagging (POS) model for the Catalan language fine-tuned from the [roberta-base-ca-v2](https://huggingface.co/projecte-aina/roberta-base-ca-v2) model, a [RoBERTa](https://arxiv.org/abs/1907.11692) base model pre-trained on a medium-size corpus collected from publicly available corpora and crawlers (check the roberta-base-ca-v2 model card for more details).
|
59 |
+
|
60 |
+
## Datasets
|
61 |
+
We used the POS dataset in Catalan from the [Universal Dependencies Treebank](https://huggingface.co/datasets/universal_dependencies) we refer to _Ancora-ca-pos_ for training and evaluation.
|
62 |
+
|
63 |
+
## Evaluation and results
|
64 |
+
We evaluated the _roberta-base-ca-v2-cased-pos_ on the Ancora-ca-ner test set against standard multilingual and monolingual baselines:
|
65 |
+
|
66 |
+
| Model | Ancora-ca-pos (F1) |
|
67 |
+
| ------------|:-------------|
|
68 |
+
| roberta-base-ca-v2-cased-pos |99.09 |
|
69 |
+
| roberta-base-ca-cased-pos | **99.10** |
|
70 |
+
| mBERT | 98.98 |
|
71 |
+
| XLM-RoBERTa | 99.03 |
|
72 |
+
|
73 |
+
For more details, check the fine-tuning and evaluation scripts in the official [GitHub repository](https://github.com/projecte-aina/club).
|
74 |
+
|
75 |
+
## Citing
|
76 |
+
If you use any of these resources (datasets or models) in your work, please cite our latest paper:
|
77 |
+
```bibtex
|
78 |
+
@inproceedings{armengol-estape-etal-2021-multilingual,
|
79 |
+
title = "Are Multilingual Models the Best Choice for Moderately Under-resourced Languages? {A} Comprehensive Assessment for {C}atalan",
|
80 |
+
author = "Armengol-Estap{\'e}, Jordi and
|
81 |
+
Carrino, Casimiro Pio and
|
82 |
+
Rodriguez-Penagos, Carlos and
|
83 |
+
de Gibert Bonet, Ona and
|
84 |
+
Armentano-Oller, Carme and
|
85 |
+
Gonzalez-Agirre, Aitor and
|
86 |
+
Melero, Maite and
|
87 |
+
Villegas, Marta",
|
88 |
+
booktitle = "Findings of the Association for Computational Linguistics: ACL-IJCNLP 2021",
|
89 |
+
month = aug,
|
90 |
+
year = "2021",
|
91 |
+
address = "Online",
|
92 |
+
publisher = "Association for Computational Linguistics",
|
93 |
+
url = "https://aclanthology.org/2021.findings-acl.437",
|
94 |
+
doi = "10.18653/v1/2021.findings-acl.437",
|
95 |
+
pages = "4933--4946",
|
96 |
+
}
|
97 |
+
```
|
98 |
+
|
99 |
+
### Funding
|
100 |
+
This work was funded by the [Catalan Government](https://politiquesdigitals.gencat.cat/en/inici/index.html) within the framework of the [AINA project.](https://politiquesdigitals.gencat.cat/ca/economia/catalonia-ai/aina).
|
config.json
ADDED
@@ -0,0 +1,67 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "projecte-aina/roberta-base-ca-v2-cased-pos",
|
3 |
+
"architectures": [
|
4 |
+
"RobertaForTokenClassification"
|
5 |
+
],
|
6 |
+
"attention_probs_dropout_prob": 0.1,
|
7 |
+
"bos_token_id": 0,
|
8 |
+
"eos_token_id": 2,
|
9 |
+
"finetuning_task": "upos",
|
10 |
+
"gradient_checkpointing": false,
|
11 |
+
"hidden_act": "gelu",
|
12 |
+
"hidden_dropout_prob": 0.1,
|
13 |
+
"hidden_size": 768,
|
14 |
+
"id2label": {
|
15 |
+
"0": "NOUN",
|
16 |
+
"1": "PUNCT",
|
17 |
+
"2": "ADP",
|
18 |
+
"3": "NUM",
|
19 |
+
"4": "SYM",
|
20 |
+
"5": "SCONJ",
|
21 |
+
"6": "ADJ",
|
22 |
+
"7": "PART",
|
23 |
+
"8": "DET",
|
24 |
+
"9": "CCONJ",
|
25 |
+
"10": "PROPN",
|
26 |
+
"11": "PRON",
|
27 |
+
"12": "X",
|
28 |
+
"13": "_",
|
29 |
+
"14": "ADV",
|
30 |
+
"15": "INTJ",
|
31 |
+
"16": "VERB",
|
32 |
+
"17": "AUX"
|
33 |
+
},
|
34 |
+
"initializer_range": 0.02,
|
35 |
+
"intermediate_size": 3072,
|
36 |
+
"label2id": {
|
37 |
+
"NOUN": 0,
|
38 |
+
"PUNCT": 1,
|
39 |
+
"PROPN": 10,
|
40 |
+
"PRON": 11,
|
41 |
+
"X": 12,
|
42 |
+
"_": 13,
|
43 |
+
"ADV": 14,
|
44 |
+
"INTJ": 15,
|
45 |
+
"VERB": 16,
|
46 |
+
"AUX": 17,
|
47 |
+
"ADP": 2,
|
48 |
+
"NUM": 3,
|
49 |
+
"SYM": 4,
|
50 |
+
"SCONJ": 5,
|
51 |
+
"ADJ": 6,
|
52 |
+
"PART": 7,
|
53 |
+
"DET": 8,
|
54 |
+
"CCONJ": 9
|
55 |
+
},
|
56 |
+
"layer_norm_eps": 1e-05,
|
57 |
+
"max_position_embeddings": 514,
|
58 |
+
"model_type": "roberta",
|
59 |
+
"num_attention_heads": 12,
|
60 |
+
"num_hidden_layers": 12,
|
61 |
+
"pad_token_id": 1,
|
62 |
+
"position_embedding_type": "absolute",
|
63 |
+
"transformers_version": "4.6.1",
|
64 |
+
"type_vocab_size": 1,
|
65 |
+
"use_cache": true,
|
66 |
+
"vocab_size": 50262
|
67 |
+
}
|
merges.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|
pytorch_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:1c5305f84db885bba3955e10b01ce95deb7bea9e5e6b95e4f573c7e1cadba1c8
|
3 |
+
size 496351025
|
special_tokens_map.json
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
{"bos_token": {"content": "<s>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": true}, "eos_token": {"content": "</s>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": true}, "unk_token": {"content": "<unk>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": true}, "sep_token": {"content": "</s>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": true}, "pad_token": {"content": "<pad>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": true}, "cls_token": {"content": "<s>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": true}, "mask_token": {"content": "<mask>", "single_word": false, "lstrip": true, "rstrip": false, "normalized": true}}
|
tokenizer.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
tokenizer_config.json
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
{"unk_token": {"content": "<unk>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": true, "__type": "AddedToken"}, "bos_token": {"content": "<s>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": true, "__type": "AddedToken"}, "eos_token": {"content": "</s>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": true, "__type": "AddedToken"}, "add_prefix_space": true, "errors": "replace", "sep_token": {"content": "</s>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": true, "__type": "AddedToken"}, "cls_token": {"content": "<s>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": true, "__type": "AddedToken"}, "pad_token": {"content": "<pad>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": true, "__type": "AddedToken"}, "mask_token": {"content": "<mask>", "single_word": false, "lstrip": true, "rstrip": false, "normalized": true, "__type": "AddedToken"}, "max_len": 512, "special_tokens_map_file": null, "name_or_path": "/gpfs/projects/bsc88/BERTs/models/roberta_base_ca_jsc/transformed_lr0.0005"}
|
vocab.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|