Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
asajatovic committed Aug 8, 2019
1 parent 893b50b commit 781dcb5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,13 @@ pip install spacy-udpipe
After installation, use `spacy_udpipe.download(lang)` to download the pre-trained model for the desired language.

## Usage
Make sure to first download the pre-trained model for the desired language with `spacy_udpipe.download(lang)`.
The loaded UDPipeLanguage class returns a spaCy [`Language` object](https://spacy.io/api/language), i.e., the nlp object you can use to process text and create a [`Doc` object](https://spacy.io/api/doc).

```python
import spacy_udpipe

spacy_udpipe.download("en") # download English model

text = "Wikipedia is a free online encyclopedia, created and edited by volunteers around the world."
nlp = spacy_udpipe.load("en")

Expand Down

0 comments on commit 781dcb5

Please sign in to comment.