Universe

spacy_hunspell

Add spellchecking and spelling suggestions to your spaCy pipeline using Hunspell

This package uses the spaCy 2.0 extensions to add Hunspell support for spellchecking.

Example

import spacy from spacy_hunspell import spaCyHunSpell nlp = spacy.load('en_core_web_sm') hunspell = spaCyHunSpell(nlp, 'mac') nlp.add_pipe(hunspell) doc = nlp('I can haz cheezeburger.') haz = doc[2] haz._.hunspell_spell # False haz._.hunspell_suggest # ['ha', 'haze', 'hazy', 'has', 'hat', 'had', 'hag', 'ham', 'hap', 'hay', 'haw', 'ha z']
Author info

Motoki Wu

GitHubtokestermw/spacy_hunspell

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