2  Loading LatinCy models

2.1 Loading LatinCy models with spaCy

# Imports

import spacy
from pprint import pprint
nlp = spacy.load('la_core_web_lg')

2.2 Creating a spaCy doc from a string

text = "Haec narrantur a poetis de Perseo."
doc = nlp(text)
print(doc)
Haec narrantur a poetis de Perseo.
print(type(doc))
<class 'spacy.tokens.doc.Doc'>
print(doc.__repr__())
Haec narrantur a poetis de Perseo.
print(doc.text)
Haec narrantur a poetis de Perseo.
print(type(doc.text))
<class 'str'>