Skip to content

macchi-franco/latin-spacy-models

 
 

Repository files navigation

spaCy Model for Latin

version 0.1.0

Update of spaCy model for Latin based on Proiel Latin conll files (https://proiel.github.io/).

Installation with pip

Download this folder into your virtual environment, site packages, etc. Unzip, if necessary, and...

  • pip install dist/la_latin_spacy_model-0.1.0.tar.gz

See https://spacy.io/usage/training for more information on working with this model.

Usage

import spacy
nlp = spacy.load('la_latin_spacy_model')
docs = nlp(u'arma virumque cano')
for token in docs:
    print(token.text)

>>> arma
>>> virumque
>>> cano

Development

This is part of my larger work on adding Latin as a language to spaCy. Please see: https://github.com/diyclassics/spaCy/tree/latin/spacy/lang/la.

About

Preliminary spaCy models for Latin

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%