Created
March 11, 2013 03:54
-
-
Save six519/5131794 to your computer and use it in GitHub Desktop.
Using python-simsimi
This file contains 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
""" | |
Goto https://github.com/six519/python-simsimi | |
""" | |
from python_simsimi import SimSimi | |
from python_simsimi.language_codes import LC_FILIPINO | |
from python_simsimi.simsimi import SimSimiException | |
simSimi = SimSimi( | |
conversation_language=LC_FILIPINO, | |
conversation_key='<API KEY>' | |
) | |
try: | |
response = simSimi.getConversation('Tang ina mo ka?') | |
print response['response'] | |
except SimSimiException as e: | |
print e |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment