Created
December 12, 2018 22:08
-
-
Save romanegloo/b17157d20854209e1ad317d6ffddb794 to your computer and use it in GitHub Desktop.
Multithreading spaCy's parser
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import spacy | |
nlp = spacy.load('de') | |
for doc in nlp.pipe(texts, n_threads=16, batch_size=10000): | |
analyse_text(doc) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment