Universe

Spacy FastLang

Language detection done fast

Fast language detection using FastText and Spacy.

Example

import spacy from spacy_fastlang import LanguageDetector nlp = spacy.load('en_core_web_sm') nlp.add_pipe(LanguageDetector()) doc = nlp('Life is like a box of chocolates. You never know what you're gonna get.') assert doc._.language == 'en' assert doc._.language_score >= 0.8
Author info

Thomas Thiebaud

GitHubthomasthiebaud/spacy-fastlang

Categories pipeline

Submit your project

If you have a project that you want the spaCy community to make use of, you can suggest it by submitting a pull request to the spaCy website repository. The Universe database is open-source and collected in a simple JSON file. For more details on the formats and available fields, see the documentation. Looking for inspiration your own spaCy plugin or extension? Check out the project idea label on the issue tracker.

Read the docsJSON source