Merge branch 'develop' of https://github.com/explosion/spaCy into develop

This commit is contained in:
Matthew Honnibal 2017-10-17 18:22:06 +02:00
commit e35a83d142
6 changed files with 71 additions and 86 deletions

View File

@ -600,7 +600,7 @@ class Language(object):
deserializers = OrderedDict(( deserializers = OrderedDict((
('vocab', lambda p: self.vocab.from_disk(p)), ('vocab', lambda p: self.vocab.from_disk(p)),
('tokenizer', lambda p: self.tokenizer.from_disk(p, vocab=False)), ('tokenizer', lambda p: self.tokenizer.from_disk(p, vocab=False)),
('meta.json', lambda p: p.open('w').write(json_dumps(self.meta))) ('meta.json', lambda p: self.meta.update(ujson.load(p.open('r'))))
)) ))
for name, proc in self.pipeline: for name, proc in self.pipeline:
if name in disable: if name in disable:

View File

@ -31,8 +31,7 @@
"StringStore": "stringstore", "StringStore": "stringstore",
"Vectors": "vectors", "Vectors": "vectors",
"GoldParse": "goldparse", "GoldParse": "goldparse",
"GoldCorpus": "goldcorpus", "GoldCorpus": "goldcorpus"
"Binder": "binder"
} }
}, },
@ -193,13 +192,6 @@
"source": "spacy/gold.pyx" "source": "spacy/gold.pyx"
}, },
"binder": {
"title": "Binder",
"tag": "class",
"tag_new": 2,
"source": "spacy/tokens/binder.pyx"
},
"vectors": { "vectors": {
"title": "Vectors", "title": "Vectors",
"teaser": "Store, save and load word vectors.", "teaser": "Store, save and load word vectors.",

View File

@ -1,7 +0,0 @@
//- 💫 DOCS > API > BINDER
include ../_includes/_mixins
p A container class for serializing collections of #[code Doc] objects.
+under-construction

View File

@ -138,7 +138,3 @@ p
+cell +cell
| An annotated corpus, using the JSON file format. Manages | An annotated corpus, using the JSON file format. Manages
| annotations for tagging, dependency parsing and NER. | annotations for tagging, dependency parsing and NER.
+row
+cell #[+api("binder") #[code Binder]]
+cell Container class for serializing collections of #[code Doc] objects.

View File

@ -206,7 +206,7 @@ p
| e.g. #[code from spacy.lang.en import English]. | e.g. #[code from spacy.lang.en import English].
+infobox +infobox
| #[+label-inline API:] #[+api("spacy#load") #[code spacy.load]], #[+api("binder") #[code Binder]] | #[+label-inline API:] #[+api("spacy#load") #[code spacy.load]]
| #[+label-inline Usage:] #[+a("/usage/saving-loading") Saving and loading] | #[+label-inline Usage:] #[+a("/usage/saving-loading") Saving and loading]
+h(3, "features-displacy") displaCy visualizer with Jupyter support +h(3, "features-displacy") displaCy visualizer with Jupyter support
@ -387,7 +387,11 @@ p
+row +row
+cell #[code Doc.read_bytes] +cell #[code Doc.read_bytes]
+cell #[+api("binder") #[code Binder]] +cell
| #[+api("doc#to_bytes") #[code Doc.to_bytes]]
| #[+api("doc#from_bytes") #[code Doc.from_bytes]]
| #[+api("doc#to_disk") #[code Doc.to_disk]]
| #[+api("doc#from_disk") #[code Doc.from_disk]]
+row +row
+cell #[code Token.is_ancestor_of] +cell #[code Token.is_ancestor_of]