Created
March 18, 2016 21:22
-
-
Save msikma/7e3beef6e306f56aae7d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cheap = Word(id=1153670) # 安い | |
yummy = Word(id=1486650) # おいしい | |
present = Phrase(cheap, yummy, tense=TENSE_PRESENT) | |
past = Phrase(cheap, yummy, tense=TENSE_PAST) | |
past_neg = Phrase(cheap, yummy, tense=TENSE_PAST, polarity=POLARITY_NEG) | |
# 牛丼は安くて、美味しいです。 | |
print('牛丼は' + str(present) + 'です。') | |
# 牛丼は安くて、美味しかったです。 | |
print('牛丼は' + str(past) + 'です。') | |
# 牛丼は安くて、美味しくなかったです。 | |
print('牛丼は' + str(past_neg) + 'です。') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment