megantosh commited on
Commit
f3a0748
1 Parent(s): f80b98d

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +10 -0
README.md CHANGED
@@ -37,6 +37,16 @@ A Dataset with 100 manually-annotated sentences taken from the [MADAR](https://c
37
  3. Parts of the Cairo Students Code-Switch (CSCS) corpus developed for ["Collection and Analysis of Code-switch Egyptian Arabic-English Speech Corpus"](https://aclanthology.org/L18-1601.pdf) by Hamed et al.
38
 
39
  # Usage
 
 
 
 
 
 
 
 
 
 
40
 
41
  # Example
42
 
37
  3. Parts of the Cairo Students Code-Switch (CSCS) corpus developed for ["Collection and Analysis of Code-switch Egyptian Arabic-English Speech Corpus"](https://aclanthology.org/L18-1601.pdf) by Hamed et al.
38
 
39
  # Usage
40
+ ```python
41
+ from flair.data import Sentence
42
+ from flair.models import SequenceTagger
43
+
44
+ tagger = SequenceTagger.load("megantosh/flair-arabic-dialects-codeswitch-egy-lev")
45
+ sentence = Sentence('عمرو عادلي أستاذ للاقتصاد السياسي المساعد في الجامعة الأمريكية بالقاهرة .')
46
+ tagger.predict(sentence)
47
+ for entity in sentence.get_spans('pos'):
48
+ print(entity)
49
+ ```
50
 
51
  # Example
52