Update serialization info

This commit is contained in:
ines 2017-05-26 13:22:45 +02:00
parent f122d82f29
commit 93ee5c4a52
2 changed files with 8 additions and 7 deletions

View File

@ -22,10 +22,10 @@ p
| untrusted sources. | untrusted sources.
p p
| All container classes and pipeline components, i.e. | All container classes, i.e. #[+api("language") #[code Language]],
for cls in ["Doc", "Language", "Tokenizer", "Tagger", "DependencyParser", "EntityRecognizer", "Vocab", "StringStore"] | #[+api("doc") #[code Doc]], #[+api("vocab") #[code Vocab]] and
| #[+api(cls.toLowerCase()) #[code=cls]], | #[+api("stringstore") #[code StringStore]] have the following methods
| have the following methods available: | available:
+table(["Method", "Returns", "Example"]) +table(["Method", "Returns", "Example"])
- style = [1, 0, 1] - style = [1, 0, 1]

View File

@ -50,9 +50,10 @@ p
p p
| spay's serialization API has been made consistent across classes and | spay's serialization API has been made consistent across classes and
| objects. All container classes and pipeline components now have a | objects. All container classes, i.e. #[code Language], #[code Doc],
| #[code to_bytes()], #[code from_bytes()], #[code to_disk()] and | #[code Vocab] and #[code StringStore] now have a #[code to_bytes()],
| #[code from_disk()] method that supports the Pickle protocol. | #[code from_bytes()], #[code to_disk()] and #[code from_disk()] method
| that supports the Pickle protocol.
p p
| The improved #[code spacy.load] makes loading models easier and more | The improved #[code spacy.load] makes loading models easier and more