Im using spacy to build a keyword extractor. The key word im looking for is OpTic Gaming in the following text.
"The company was also one of OpTic Gaming's main sponsors during the legendary organization's run to their first Call of Duty Championship back in 2017"
How can i parse OpTic Gaming from this text. If use noun_chunks i get OpTic Gaming's main sponsors sponsors and if i get tokens i get ["OpTic", "Gaming", "'s"].
import spacy
nlp = spacy.load("en_core_web_sm")
doc = nlp("The company was also one of OpTic Gaming's main sponsors during the legendary organization's run to their first Call of Duty Championship back in 2017")
for chunk in doc.noun_chunks:
print(chunk.text, chunk.root.text, chunk.root.dep_,
chunk.root.head.text)
The company company nsubj was
OpTic Gaming's main sponsors sponsors pobj of
their first Call Call pobj to
Duty Championship Championship pobj of