Lilit-Sophia commited on
Commit
c17f3dc
1 Parent(s): 7f571ba

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +31 -3
README.md CHANGED
@@ -28,7 +28,15 @@ model-index:
28
  - name: Morph (UFeats) Accuracy
29
  type: accuracy
30
  value: 0.8943839061
 
 
 
 
 
31
  ---
 
 
 
32
  | Feature | Description |
33
  | --- | --- |
34
  | **Name** | `xcl_ud_caval` |
@@ -37,9 +45,29 @@ model-index:
37
  | **Default Pipeline** | `tok2vec`, `morphologizer`, `tagger` |
38
  | **Components** | `tok2vec`, `morphologizer`, `tagger` |
39
  | **Vectors** | 0 keys, 0 unique vectors (0 dimensions) |
40
- | **Sources** | n/a |
41
- | **License** | n/a |
42
- | **Author** | [n/a]() |
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
43
 
44
  ### Label Scheme
45
 
 
28
  - name: Morph (UFeats) Accuracy
29
  type: accuracy
30
  value: 0.8943839061
31
+ license: cc-by-sa-4.0
32
+ metrics:
33
+ - accuracy
34
+ - f1
35
+ pipeline_tag: token-classification
36
  ---
37
+
38
+ ### SpaCy model for Classical Armenian trained on the UD_Classical_Armenian-CAVaL corpus
39
+
40
  | Feature | Description |
41
  | --- | --- |
42
  | **Name** | `xcl_ud_caval` |
 
45
  | **Default Pipeline** | `tok2vec`, `morphologizer`, `tagger` |
46
  | **Components** | `tok2vec`, `morphologizer`, `tagger` |
47
  | **Vectors** | 0 keys, 0 unique vectors (0 dimensions) |
48
+ | **Training Data:** | Trained on: [UD_Classical_Armenian-CAVaL](https://github.com/UniversalDependencies/UD_Classical_Armenian-CAVaL), additional unreleased dataset|
49
+ | **License** | CC BY-SA 4.0 |
50
+ | **Author** | [Lilit Kharatyan](https://github.com/LilitKharatyan), [Petr Kocharov](https://github.com/pkocharov)|
51
+
52
+ ## Custom Language Setup
53
+
54
+ To use this model with the custom Classical Armenian language class (`XclLanguage`), run the following initialization script before loading the model:
55
+
56
+ ```python
57
+ from spacy.language import Language as DefaultLanguage
58
+ from spacy.util import set_lang_class
59
+
60
+ class XclLanguage(DefaultLanguage):
61
+ lang = "xcl"
62
+
63
+ @classmethod
64
+ def create(cls, vocab):
65
+ nlp = super(XclLanguage, cls).create(vocab)
66
+ return nlp
67
+
68
+ # Add the custom language class to SpaCy
69
+ set_lang_class("xcl", XclLanguage)
70
+ ```
71
 
72
  ### Label Scheme
73