As far as I know that we can get the v1 form of a verb using
JavaScript
x
2
1
word.lemma_
2
I wanted to know is their a way in which we can get the form of the verb like:
swims it should output v4
Is their way to do that using SpaCy or any other lib and if there is then please give a link to that command
Advertisement
Answer
There are 6 verb forms available in spacy:
JavaScript
1
7
1
VB -- verb, base form
2
VBD -- verb, past tense
3
VBG -- verb, gerund or present participle
4
VBN -- verb, past participle
5
VBP -- verb, non-3rd person singular present
6
VBZ -- verb, 3rd person singular present
7
This is what you can get by calling word.tag_
. However, I don’t know how they relate to your v1 or v4. To find all tags just call:
JavaScript
1
3
1
for label in nlp.get_pipe("tagger").labels:
2
print(label, " -- ", spacy.explain(label))
3