How to conjugate a verb in NLTK given POS tag?

前端 未结 2 975
太阳男子
太阳男子 2020-12-15 12:17

Given a POS tag, such as VBD, how can I conjugate a verb to match with NLTK?

e.g.

VERB: go
POS: VBD
RESULT: went
2条回答
  •  别那么骄傲
    2020-12-15 12:46

    I used MontyLingua for word inflexion and conjugation. https://pypi.python.org/pypi/MontyLingua/2.1

        mlg = MontyLingua.MontyNLGenerator.MontyNLGenerator()
        mlg.conjugate_verb(verb,mode)
    

    More info: https://en.wikipedia.org/wiki/MontyLingua

提交回复
热议问题