Hungarian models for spaCy
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
LICENSE Initial commit Apr 20, 2017
README.md Update README.md Aug 26, 2017

README.md

Hungarian models for spaCy

This repository contains releases of Hungarian models for the spaCy library. For more info on how to download, install and use the models, see the models documentation.

All the models are experimental, consider them as pre-release alphas.

Releases

Date Model Version Spacy version Features Size Memory License Info Get
2017-06-05 hu_vectors_web_lg 0.1.0 >=1.8, <2.0 Vocabulary, Brown clusters, Token frequencies, Word vectors 1.8G 7G Creative Commons License
2017-06-07 hu_vectors_web_md 0.1.0 >=1.8, <2.0 Vocabulary, Brown clusters, Token frequencies, Word vectors 1.0G 2.9G Creative Commons License
2017-06-11 hu_tagger_web_md 0.1.0 >=1.8, <2.0 PoS Tagger, Vocabulary, Brown clusters, Token frequencies, Word vectors 1.0G >2.9G Creative Commons License

Downloading models

pip install https://github.com/oroszgy/spacy-hungarian-models/releases/download/hu_tagger_web_md-0.1.0/hu_tagger_web_md-0.1.0.tar.gz

# set up shortcut link to load installed package as "hu"
python -m spacy link hu_tagger_web_md hu

Loading and using models

To load a model, use spacy.load() with the model's shortcut link:

import spacy
nlp = spacy.load('hu_tagger_web_md')
doc = nlp(u'Sziasztok, megjöttem.')

If you've installed a model via pip, you can also import it directly and then call its load() method with no arguments. This should also work for older models in previous versions of spaCy.

import spacy
import hu_tagger_web_md

nlp = hu_tagger_web_md.load()
doc = nlp(u'Sziasztok, megjöttem.')