mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-25 01:16:28 +03:00
Merge remote-tracking branch 'origin/master' into specify-data-path
This commit is contained in:
commit
2dc305f46b
|
@ -164,8 +164,8 @@ p
|
||||||
+cell #[code other]
|
+cell #[code other]
|
||||||
+cell -
|
+cell -
|
||||||
+cell
|
+cell
|
||||||
| The object to compare with. By default, accepts #[code Doc],
|
| The object to compare with. By default, accepts #[code Doc],
|
||||||
| #[code Span], #[code Token] and #[code Lexeme] objects.
|
| #[code Span], #[code Token] and #[code Lexeme] objects.
|
||||||
|
|
||||||
+footrow
|
+footrow
|
||||||
+cell return
|
+cell return
|
||||||
|
|
|
@ -156,8 +156,8 @@ p
|
||||||
+cell #[code other]
|
+cell #[code other]
|
||||||
+cell -
|
+cell -
|
||||||
+cell
|
+cell
|
||||||
| The object to compare with. By default, accepts #[code Doc],
|
| The object to compare with. By default, accepts #[code Doc],
|
||||||
| #[code Span], #[code Token] and #[code Lexeme] objects.
|
| #[code Span], #[code Token] and #[code Lexeme] objects.
|
||||||
|
|
||||||
+footrow
|
+footrow
|
||||||
+cell return
|
+cell return
|
||||||
|
|
|
@ -70,8 +70,8 @@ p Create the vocabulary.
|
||||||
+cell #[code lex_attr_getters]
|
+cell #[code lex_attr_getters]
|
||||||
+cell dict
|
+cell dict
|
||||||
+cell
|
+cell
|
||||||
| A dictionary mapping attribute IDs to functions to compute them.
|
| A dictionary mapping attribute IDs to functions to compute them.
|
||||||
| Defaults to #[code None].
|
| Defaults to #[code None].
|
||||||
|
|
||||||
+row
|
+row
|
||||||
+cell #[code lemmatizer]
|
+cell #[code lemmatizer]
|
||||||
|
|
|
@ -56,7 +56,7 @@ p
|
||||||
| fetched via #[code spacy.util.get_data_path()]. You can
|
| fetched via #[code spacy.util.get_data_path()]. You can
|
||||||
| configure this default using #[code spacy.util.set_data_path()].
|
| configure this default using #[code spacy.util.set_data_path()].
|
||||||
| The data path is expected to be either a string, or an object
|
| The data path is expected to be either a string, or an object
|
||||||
| responding to #[code thepathlib.Path] interface. If the path is
|
| responding to the #[code pathlib.Path] interface. If the path is
|
||||||
| a string, it will be immediately transformed into a
|
| a string, it will be immediately transformed into a
|
||||||
| #[code pathlib.Path] object. spaCy promises to never manipulate
|
| #[code pathlib.Path] object. spaCy promises to never manipulate
|
||||||
| or open file-system paths as strings. All access to the
|
| or open file-system paths as strings. All access to the
|
||||||
|
|
|
@ -73,7 +73,7 @@ p
|
||||||
| one-by-one. After a long and bitter struggle, the global interpreter
|
| one-by-one. After a long and bitter struggle, the global interpreter
|
||||||
| lock was freed around spaCy's main parsing loop in v0.100.3. This means
|
| lock was freed around spaCy's main parsing loop in v0.100.3. This means
|
||||||
| that the #[code .pipe()] method will be significantly faster in most
|
| that the #[code .pipe()] method will be significantly faster in most
|
||||||
| practical situations, because it allows shared memory parallelism.
|
| practical situations, because it allows shared memory parallelism.
|
||||||
|
|
||||||
+code.
|
+code.
|
||||||
for doc in nlp.pipe(texts, batch_size=10000, n_threads=3):
|
for doc in nlp.pipe(texts, batch_size=10000, n_threads=3):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user