# Imports
import spacy
from pprint import pprint
2 Loading LatinCy models
2.1 Loading LatinCy models with spaCy
= spacy.load('la_core_web_lg') nlp
2.2 Creating a spaCy doc from a string
= "Haec narrantur a poetis de Perseo."
text = nlp(text)
doc 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'>