<s> import os . path , sys <EOL> try : <EOL> import apiai <EOL> except ImportError : <EOL> sys . path . append ( os . path . join ( os . path . dirname ( os . path . realpath ( __file__ ) ) , os . pardir ) ) <EOL> import apiai <EOL> CLIENT_ACCESS_TOKEN = '<STR_LIT>' <EOL> def main ( ) : <EOL> ai = apiai . ApiAI ( CLIENT_ACCESS_TOKEN ) <EOL> request = ai . text_request ( ) <EOL> request . lang = '<STR_LIT>' <EOL> request . query = "<STR_LIT>" <EOL> response = request . getresponse ( ) <EOL> print ( response . read ( ) ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> main ( ) </s>
