Add .from_disk() to pipeline component init example (resolves #1728)

This commit is contained in:
ines 2018-01-03 16:50:24 +01:00
parent 1380bce9a2
commit 49635350f0

View File

@ -49,6 +49,7 @@ p Create a new pipeline instance.
+aside-code("Example").
from spacy.pipeline import #{CLASSNAME}
#{VARNAME} = #{CLASSNAME}(nlp.vocab)
#{VARNAME}.from_disk('/path/to/model')
+table(["Name", "Type", "Description"])
+row