Created
March 18, 2016 21:04
-
-
Save msikma/440bdae17f9368d6d787 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) # 安い | |
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