We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7847bd8 commit edfb2a1Copy full SHA for edfb2a1
bin/_deserialize.py
@@ -0,0 +1,16 @@
1
+'''Load a spaCy model
2
+
3
+1. Download and extract https://index.spacy.io/models/en_default-1.0.8/archive.gz
4
+2. Find the model file deps/model
5
+3. Pass the path to this file to this script
6
+'''
7
+import sys
8
9
10
+def main(loc):
11
+ model = thinc.linear.avgtron.AveragedPerceptron([])
12
+ model.load(loc)
13
14
15
+if __name__ == '__main__':
16
+ main(sys.argv[1])
0 commit comments