Answers for "merge nouns spacy"

0

merge nouns spacy

import spacy
nlp = spacy.load('en_core_web_sm')
nlp.add_pipe(nlp.create_pipe('merge_noun_chunks'))
doc = nlp(u"Autonomous cars shift insurance liability toward manufacturers")
for token in doc:
    print(token.text)
Posted by: Guest on May-13-2021

Browse Popular Code Answers by Language