Skip to content

Getting lemmas for all words in sentence #1136

Closed Answered by spencermountain
moskaliukua asked this question in Q&A
Discussion options

You must be logged in to vote

hi @moskaliukua - i think this is probably what you're looking for -

let doc = nlp(' I am going to the store')
doc.compute('root')
doc.json()

https://runkit.com/spencermountain/66b243b9e0d0c900085ae794
you can see the documentation for root-words here
cheers

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@moskaliukua
Comment options

Answer selected by moskaliukua
Comment options

You must be logged in to vote
1 reply
@moskaliukua
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants