Skip to content

Instantly share code, notes, and snippets.

@msikma
Created March 18, 2016 21:04
Show Gist options
  • Save msikma/440bdae17f9368d6d787 to your computer and use it in GitHub Desktop.
Save msikma/440bdae17f9368d6d787 to your computer and use it in GitHub Desktop.
cheap = Word(id=1153670) # 安い
white = Word(id=1474910) # 白い
present = Phrase(cheap, white, tense=TENSE_PRESENT)
past = Phrase(cheap, white, tense=TENSE_PAST)
past_neg = Phrase(cheap, white, 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