赞
踩
- from pattern.en import conjugate, 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))
tense:时态
person:n—第n人称
number:主语的单复数(个数)
aspect:语态(+ed、+ing)
以下为源码解释:
- # The conjugate() function inflects a verb to another tense.
- # You can supply:
- # - tense : INFINITIVE, PRESENT, PAST,
- # - person: 1, 2, 3 or None,
- # - number: SINGULAR, PLURAL,
- # - mood : INDICATIVE, IMPERATIVE,
- # - aspect: IMPERFECTIVE, PROGRESSIVE.
- # The tense can also be given as an abbreviated alias, e.g.,
- # inf, 1sg, 2sg, 3sg, pl, part, 1sgp, 2sgp, 3sgp, ppl, ppart.
- from pattern.en import PRESENT, SINGULAR
- print(conjugate("being", tense=PRESENT, person=1, number=SINGULAR, negated=False))
- print(conjugate("being", tense="1sg", negated=False))
- print("")
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。