Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,13 @@ Add the spaCyHunSpell to the spaCy pipeline.

```
import spacy
from spacy.language import Language
from spacy_hunspell import spaCyHunSpell

nlp = spacy.load('en_core_web_sm')
hunspell = spaCyHunSpell(nlp, 'mac')
nlp.add_pipe(hunspell)
Language.component("hunspell")(hunspell)
nlp.add_pipe("hunspell")

doc = nlp('I can haz cheezeburger.')
haz = doc[2]
Expand All @@ -32,6 +34,7 @@ hunspell = spaCyHunSpell(nlp, ('en_US.dic', 'en_US.aff'))
```

You can find the [English dictionary files here](http://wordlist.aspell.net/dicts/).
You can find the [dictionary files for other languages here](https://github.com/LibreOffice/dictionaries).

## Installation

Expand Down