赞
踩
No module named ‘en_core_web_sm‘的问题::https://blog.csdn.net/weixin_43975374/article/details/107442194
官网:https://github.com/clips/pattern
细致讲解:https://blog.csdn.net/weixin_43975374/article/details/107484781
- from pattern.en import conjugate, lemma, lexeme, PRESENT, INFINITIVE, PAST, FUTURE, SG, PLURAL, PROGRESSIVE
- vb_word = "be"
- print(conjugate(vb_word, tense=PRESENT, person=1, number=SG))
- print(conjugate(vb_word, tense=PRESENT, person=2, number=SG))
- print(conjugate(vb_word, tense=PRESENT, person=3, number=SG))
- print(conjugate(vb_word, tense=PRESENT, number=PLURAL))
- print(conjugate(vb_word, tense=PRESENT, aspect=PROGRESSIVE))
- print(conjugate(vb_word, tense=INFINITIVE))
- print(conjugate(vb_word, tense=PAST, aspect=PROGRESSIVE))
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。