Create README.md
Browse files
README.md
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
language:
|
| 4 |
+
- el
|
| 5 |
+
base_model:
|
| 6 |
+
- princeton-logion/logion-bert-base
|
| 7 |
+
pipeline_tag: fill-mask
|
| 8 |
+
---
|
| 9 |
+
|
| 10 |
+
# Logion ATE model (BERT-based)
|
| 11 |
+
|
| 12 |
+
[Logion Base BERT model](https://huggingface.co/princeton-logion/logion-bert-base) fine-tuned to **A**ristotle, **T**heophrastus, and **E**udlic texts.
|
| 13 |
+
|
| 14 |
+
Fine-tuned for mask-filling on a set of 1.5+ million words (all of Theophrastus, Euclid, and Aristotle, minus *De lineis insecabilibus*).
|
| 15 |
+
|
| 16 |
+
## How to use
|
| 17 |
+
|
| 18 |
+
Requirements:
|
| 19 |
+
|
| 20 |
+
```python
|
| 21 |
+
pip install transformers
|
| 22 |
+
```
|
| 23 |
+
|
| 24 |
+
Load the model and tokenizer directly from the HuggingFace Model Hub:
|
| 25 |
+
|
| 26 |
+
|
| 27 |
+
```python
|
| 28 |
+
from transformers import BertTokenizer, BertForMaskedLM
|
| 29 |
+
tokenizer = BertTokenizer.from_pretrained("princeton-logion/logion-bert-ate")
|
| 30 |
+
model = BertForMaskedLM.from_pretrained("princeton-logion/logion-bert-ate")
|
| 31 |
+
```
|
| 32 |
+
|
| 33 |
+
|
| 34 |
+
## Cite
|
| 35 |
+
|
| 36 |
+
If you use this model in your research, please cite the repo.
|