iproskurina
commited on
Commit
·
cff14db
1
Parent(s):
855e4c1
Update spaCy pipeline
Browse files
.ipynb_checkpoints/meta-checkpoint.json
ADDED
@@ -0,0 +1,99 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"lang":"en",
|
3 |
+
"name":"grammar_checker",
|
4 |
+
"version":"1.0.1",
|
5 |
+
"description":"Essay Grammar Checker",
|
6 |
+
"author":"Irina Proskurina",
|
7 |
+
"email":"",
|
8 |
+
"url":"",
|
9 |
+
"license":"CC BY-SA 3.0",
|
10 |
+
"spacy_version":">=3.4.4,<3.5.0",
|
11 |
+
"parent_package":"spacy",
|
12 |
+
"requirements":[
|
13 |
+
"spacy-transformers>=1.0.0,<1.1.0"
|
14 |
+
],
|
15 |
+
"sources":[
|
16 |
+
{
|
17 |
+
"license":"MIT"
|
18 |
+
}
|
19 |
+
],
|
20 |
+
"vectors":{
|
21 |
+
"width":0,
|
22 |
+
"vectors":0,
|
23 |
+
"keys":0,
|
24 |
+
"name":null
|
25 |
+
},
|
26 |
+
"pipeline":
|
27 |
+
"errors",
|
28 |
+
"components":"errors",
|
29 |
+
"labels":{
|
30 |
+
|
31 |
+
},
|
32 |
+
"performance":{
|
33 |
+
"spans_errors_p":0.7937892339,
|
34 |
+
"spans_errors_r":0.4476503759,
|
35 |
+
"spans_errors_f":0.5724644939,
|
36 |
+
"spans_errors_per_type":{
|
37 |
+
"Numerals":{
|
38 |
+
"p":0.7313328681,
|
39 |
+
"r":0.577092511,
|
40 |
+
"f":0.6451215759
|
41 |
+
},
|
42 |
+
"lex_item_choice":{
|
43 |
+
"p":0.7750791975,
|
44 |
+
"r":0.1950571353,
|
45 |
+
"f":0.3116772824
|
46 |
+
},
|
47 |
+
"Articles":{
|
48 |
+
"p":0.785046729,
|
49 |
+
"r":0.4552258065,
|
50 |
+
"f":0.5762822607
|
51 |
+
},
|
52 |
+
"Punctuation":{
|
53 |
+
"p":0.6955835962,
|
54 |
+
"r":0.2376077586,
|
55 |
+
"f":0.3542168675
|
56 |
+
},
|
57 |
+
"Prepositions":{
|
58 |
+
"p":0.8163471241,
|
59 |
+
"r":0.3766294227,
|
60 |
+
"f":0.5154507805
|
61 |
+
},
|
62 |
+
"Formational_affixes":{
|
63 |
+
"p":0.7269700333,
|
64 |
+
"r":0.6031307551,
|
65 |
+
"f":0.6592853548
|
66 |
+
},
|
67 |
+
"Agreement_errors":{
|
68 |
+
"p":0.7909018356,
|
69 |
+
"r":0.5164147994,
|
70 |
+
"f":0.6248423707
|
71 |
+
},
|
72 |
+
"Capitalisation":{
|
73 |
+
"p":0.8034148593,
|
74 |
+
"r":0.7899274047,
|
75 |
+
"f":0.7966140471
|
76 |
+
},
|
77 |
+
"Noun_number":{
|
78 |
+
"p":0.8251445087,
|
79 |
+
"r":0.5558079169,
|
80 |
+
"f":0.6642109345
|
81 |
+
},
|
82 |
+
"Tense_choice":{
|
83 |
+
"p":0.7827648115,
|
84 |
+
"r":0.5369458128,
|
85 |
+
"f":0.6369612856
|
86 |
+
},
|
87 |
+
"Spelling":{
|
88 |
+
"p":0.886746988,
|
89 |
+
"r":0.4357608052,
|
90 |
+
"f":0.5843588726
|
91 |
+
}
|
92 |
+
}
|
93 |
+
},
|
94 |
+
"speed":2779.5295317788,
|
95 |
+
"spacy_git_version":"61dfdd9fb",
|
96 |
+
"disabled":[
|
97 |
+
|
98 |
+
]
|
99 |
+
}
|
custom_factories.py
CHANGED
@@ -7,7 +7,7 @@ from spacy.util import get_model_meta
|
|
7 |
model_path = Path(__file__).parent
|
8 |
meta = get_model_meta(model_path)
|
9 |
data_dir = f"{meta['lang']}_{meta['name']}-{meta['version']}"
|
10 |
-
components_path = model_path / data_dir
|
11 |
|
12 |
@Language.component("errors")
|
13 |
def errors(doc):
|
|
|
7 |
model_path = Path(__file__).parent
|
8 |
meta = get_model_meta(model_path)
|
9 |
data_dir = f"{meta['lang']}_{meta['name']}-{meta['version']}"
|
10 |
+
components_path = model_path / data_dir
|
11 |
|
12 |
@Language.component("errors")
|
13 |
def errors(doc):
|
en_grammar_checker-any-py3-none-any.whl
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:30f4f407b9c2d04325c1f3c5f404b058522f95bf4b3c06185c4e981430b648bc
|
3 |
+
size 27086
|