From 0d33ead507bfc79ac341fd9b0bbe3a1e8aacc1d9 Mon Sep 17 00:00:00 2001 From: ines Date: Sat, 27 May 2017 17:58:06 +0200 Subject: [PATCH] Fix initialisation of Doc in lightning tour example --- website/docs/usage/lightning-tour.jade | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/website/docs/usage/lightning-tour.jade b/website/docs/usage/lightning-tour.jade index 4a9a2315f..eefb7a11a 100644 --- a/website/docs/usage/lightning-tour.jade +++ b/website/docs/usage/lightning-tour.jade @@ -129,13 +129,14 @@ p +code. import spacy from spacy.tokens.doc import Doc + from spacy.vocab import Vocab nlp = spacy.load('en') moby_dick = open('moby_dick.txt', 'r') doc = nlp(moby_dick) doc.to_disk('/moby_dick.bin') - new_doc = Doc().from_disk('/moby_dick.bin') + new_doc = Doc(Vocab()).from_disk('/moby_dick.bin') +infobox | #[strong Usage:] #[+a("/docs/usage/saving-loading") Saving and loading]