Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update docs #8

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
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