I am new to Spacy and I would like to extract \"all\" the noun phrases from a sentence. I\'m wondering how I can do it. I have the following code:
Spacy
i
Please try this to get all nouns from a text:
import spacy nlp = spacy.load("en_core_web_sm") text = ("We try to explicitly describe the geometry of the edges of the images.") doc = nlp(text) print([chunk.text for chunk in doc.noun_chunks])