bowphs commited on
Commit
c7750ee
1 Parent(s): 36a2543

Add PhilBerta files

Browse files
README.md ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - multilingual
4
+ - grc
5
+ - en
6
+ - la
7
+ license: apache-2.0
8
+ inference: false
9
+ ---
10
+ # PhilBerta
11
+
12
+ The paper [Exploring Language Models for Classical Philology](https://todo.com) is the first effort to systematically provide state-of-the-art language models for Classical Philology. PhilBerta is a RoBerta-base sized, multilingual, encoder-only variant.
13
+
14
+ This model was trained using data from the [Open Greek & Latin Project](https://opengreekandlatin.org/), the CLARIN corpus [Greek Medieval Texts](https://inventory.clarin.gr/corpus/890), the [Patrologia Graeca](https://patristica.net/graeca/), the [Corpus Corporum](https://mlat.uzh.ch/), and [Project Gutenberg](https://www.gutenberg.org/).
15
+
16
+ Further information can be found in our paper or in our [GitHub repository](https://github.com/Heidelberg-NLP/ancient-language-models).
17
+
18
+ ## Usage
19
+ ```python
20
+ from transformers import AutoTokenizer, AutoModelForMaskedLM
21
+
22
+ tokenizer = AutoTokenizer.from_pretrained('bowphs/PhilBerta')
23
+ model = AutoModelForMaskedLM.from_pretrained('bowphs/PhilBerta')
24
+ ```
25
+ Please check out the awesome Hugging Face tutorials on how to fine-tune our models.
26
+
27
+ ## Evaluation Results
28
+ When fine-tuned on data from [Universal Dependencies 2.10](https://universaldependencies.org/), PhilBerta achieves the following results on the Ancient Greek Perseus dataset:
29
+
30
+ | Task | XPoS | UPoS | UAS | LAS |
31
+ |:--:|:--:|:--:|:--:|:--:|
32
+ | |95.60|90.41|86.99|82.69|
33
+
34
+ When fine-tuned on PoS data from [EvaLatin 2022](https://universaldependencies.org/), it achieves the following results:
35
+
36
+ | Task | Classical | Cross-genre | Cross-time |
37
+ |:--:|:--:|:--:|:--:|
38
+ | |98.23|96.59|93.25|
39
+
40
+ ## Contact
41
+ If you have any questions or problems, feel free to [reach out](mailto:riemenschneider@cl.uni-heidelberg.de).
42
+
43
+ ## Citation
44
+ ```bibtex
45
+ @incollection{riemenschneiderfrank:2023,
46
+ address = "Toronto, Canada",
47
+ author = "Riemenschneider, Frederick and Frank, Anette",
48
+ booktitle = "Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (ACL’23)",
49
+ note = "to appear",
50
+ pubType = "incollection",
51
+ publisher = "Association for Computational Linguistics",
52
+ title = "Exploring Large Language Models for Classical Philology",
53
+ url = "https://arxiv.org/abs/2305.13698",
54
+ year = "2023",
55
+ key = "riemenschneiderfrank:2023"
56
+ }
57
+ ```
config.json ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "bowphs/PhilBerta",
3
+ "architectures": [
4
+ "RobertaForMaskedLM"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "bos_token_id": 0,
8
+ "classifier_dropout": null,
9
+ "eos_token_id": 2,
10
+ "hidden_act": "gelu",
11
+ "hidden_dropout_prob": 0.1,
12
+ "hidden_size": 768,
13
+ "initializer_range": 0.02,
14
+ "intermediate_size": 3072,
15
+ "layer_norm_eps": 1e-05,
16
+ "max_position_embeddings": 514,
17
+ "model_type": "roberta",
18
+ "num_attention_heads": 12,
19
+ "num_hidden_layers": 12,
20
+ "pad_token_id": 1,
21
+ "position_embedding_type": "absolute",
22
+ "torch_dtype": "float32",
23
+ "transformers_version": "4.19.0",
24
+ "type_vocab_size": 1,
25
+ "use_cache": true,
26
+ "vocab_size": 64000
27
+ }
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:6cd44851835633320bee0a1af581f5d856f7a45edcf09344e3c20e03e99fa664
3
+ size 541110571
special_tokens_map.json ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": "<s>",
3
+ "cls_token": "<s>",
4
+ "eos_token": "</s>",
5
+ "mask_token": {
6
+ "content": "<mask>",
7
+ "lstrip": true,
8
+ "normalized": false,
9
+ "rstrip": false,
10
+ "single_word": false
11
+ },
12
+ "pad_token": "<pad>",
13
+ "sep_token": "</s>",
14
+ "unk_token": "<unk>"
15
+ }
tf_model.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:15618e7003d5c184749d58ba6542ebf04ef4fa1159461b29f32e685d6b6e3f59
3
+ size 739513936
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": false,
3
+ "bos_token": "<s>",
4
+ "cls_token": "<s>",
5
+ "eos_token": "</s>",
6
+ "errors": "replace",
7
+ "mask_token": "<mask>",
8
+ "name_or_path": "homerberta-pt",
9
+ "pad_token": "<pad>",
10
+ "sep_token": "</s>",
11
+ "special_tokens_map_file": null,
12
+ "tokenizer_class": "RobertaTokenizer",
13
+ "trim_offsets": true,
14
+ "unk_token": "<unk>"
15
+ }
vocab.json ADDED
The diff for this file is too large to render. See raw diff