UGARIT commited on
Commit
cae49f8
·
1 Parent(s): c18a8a0

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +38 -0
README.md ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - grc
4
+ tags:
5
+ - flair
6
+ - token-classification
7
+ - ner
8
+ widget:
9
+ - ταῦτα εἴπας ὁ Ἀλέξανδρος παρίζει Πέρσῃ ἀνδρὶ ἄνδρα Μακεδόνα ὡς γυναῖκα τῷ λόγῳ · οἳ δέ , ἐπείτε σφέων οἱ Πέρσαι ψαύειν ἐπειρῶντο , διεργάζοντο αὐτούς .
10
+ ---
11
+ # Named Entity Recognition for Ancient Greek
12
+
13
+ Pretrained NER tagging model for ancient Greek
14
+
15
+ # Usage
16
+ ```python
17
+ from flair.data import Sentence
18
+ from flair.models import SequenceTagger
19
+
20
+ tagger = SequenceTagger.load("UGARIT/flair_grc_bert_ner")
21
+ sentence = Sentence('ταῦτα εἴπας ὁ Ἀλέξανδρος παρίζει Πέρσῃ ἀνδρὶ ἄνδρα Μακεδόνα ὡς γυναῖκα τῷ λόγῳ · οἳ δέ , ἐπείτε σφέων οἱ Πέρσαι ψαύειν ἐπειρῶντο , διεργάζοντο αὐτούς .')
22
+ tagger.predict(sentence)
23
+ for entity in sentence.get_spans('ner'):
24
+ print(entity)
25
+ ```
26
+
27
+
28
+ # Citation
29
+ *if you use this model, please consider citing [this work](https://www.researchgate.net/publication/365131651_Transformer-Based_Named_Entity_Recognition_for_Ancient_Greek):*
30
+ ```latex
31
+ @unpublished{yousefetal22
32
+ author = "Yousef, Tariq and Palladino, Chiara and Jänicke, Stefan",
33
+ title = "Transformer-Based Named Entity Recognition for Ancient Greek",
34
+ year = {2022},
35
+ month = {11},
36
+ doi = "10.13140/RG.2.2.34846.61761"
37
+ url = {https://www.researchgate.net/publication/358956953_Sequence_Labeling_Architectures_in_Diglossia_-_a_case_study_of_Arabic_and_its_dialects}
38
+ }