Update API docs

This commit is contained in:
ines 2017-05-28 00:32:43 +02:00
parent c1983621fb
commit eb703f7656
2 changed files with 10 additions and 4 deletions

View File

@ -158,7 +158,8 @@
"binder": { "binder": {
"title": "Binder", "title": "Binder",
"tag": "class" "tag": "class",
"source": "spacy/tokens/binder.pyx"
}, },
"annotation": { "annotation": {

View File

@ -11,8 +11,13 @@ p
| the name of an installed | the name of an installed
| #[+a("/docs/usage/saving-loading#generating") model package], a unicode | #[+a("/docs/usage/saving-loading#generating") model package], a unicode
| path or a #[code Path]-like object. spaCy will try resolving the load | path or a #[code Path]-like object. spaCy will try resolving the load
| argument in this order. The #[code Language] class to initialise will be | argument in this order. If a model is loaded from a shortcut link or
| determined based on the model's settings. | package name, spaCy will assume it's a Python package and import it and
| call the model's own #[code load()] method. If a model is loaded from a
| path, spaCy will assume it's a data directory, read the language and
| pipeline settings off the meta.json and initialise the #[code Language]
| class. The data will be loaded in via
| #[+api("language#from_disk") #[code Language.from_disk()]].
+aside-code("Example"). +aside-code("Example").
nlp = spacy.load('en') # shortcut link nlp = spacy.load('en') # shortcut link
@ -20,7 +25,7 @@ p
nlp = spacy.load('/path/to/en') # unicode path nlp = spacy.load('/path/to/en') # unicode path
nlp = spacy.load(Path('/path/to/en')) # pathlib Path nlp = spacy.load(Path('/path/to/en')) # pathlib Path
nlp = spacy.load('en', disable['parser', 'tagger']) nlp = spacy.load('en', disable=['parser', 'tagger'])
+table(["Name", "Type", "Description"]) +table(["Name", "Type", "Description"])
+row +row