import spacy
text="spaCy uses the terms head and child to describe the words"
nlp = spacy.load("en_core_web_sm")
doc = nlp(text)
for token in doc:
print(token.text, token.pos_, token.dep_)
spaCy INTJ intj
uses VERB ROOT
the DET det
terms NOUN dobj
head VERB dobj
and CCONJ cc
child NOUN conj
to PART aux
describe VERB xcomp
the DET det
words NOUN dobj