From 61d20de35d9cea43325973ddcc3c377550502ec3 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Thu, 14 Apr 2016 10:36:57 +0200 Subject: [PATCH] * Fix language.py docstring --- spacy/language.py | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/spacy/language.py b/spacy/language.py index f186c2f2b..39f78713b 100644 --- a/spacy/language.py +++ b/spacy/language.py @@ -147,24 +147,23 @@ class Language(object): package=None, vectors_package=None): """ - a model can be specified: + A model can be specified: - 1) by calling a Language subclass - - spacy.en.English() + 1) by calling a Language subclass + - spacy.en.English() - 2) by calling a Language subclass with data_dir - - spacy.en.English('my/model/root') - - spacy.en.English(data_dir='my/model/root') + 2) by calling a Language subclass with data_dir + - spacy.en.English('my/model/root') + - spacy.en.English(data_dir='my/model/root') - 3) by package name - - spacy.load('en_default') - - spacy.load('en_default==1.0.0') + 3) by package name + - spacy.load('en_default') + - spacy.load('en_default==1.0.0') - 4) by package name with a relocated package base - - spacy.load('en_default', via='/my/package/root') - - spacy.load('en_default==1.0.0', via='/my/package/root') + 4) by package name with a relocated package base + - spacy.load('en_default', via='/my/package/root') + - spacy.load('en_default==1.0.0', via='/my/package/root') """ - if package is None: if data_dir is None: package = util.get_package_by_name()