import spacy
nlp = spacy.load("en_core_web_sm")
print("Pipeline:", nlp.pipe_names)
doc = nlp("I was reading the paper.")
token = doc[2]
print(token.morph)
print(token.morph.get("PronType"))
TypeError: str returned non-string (type list)
Giving above error for token.morph
Here is a test using Spacy 3.0:
Then, there is no
PronTypeattribute here, so printing what you want yields an empty array: