コード例 #1
0
ファイル: user_input.py プロジェクト: sudhamshk/jeeves
def user_input(message="Hello"):
    reply = None

    while not reply:
        reply = recognize()
    communicator.send_to_ui("user", reply)
    return reply.lower()
コード例 #2
0
ファイル: user_input.py プロジェクト: rajatguptarg/jeeves
def user_input(message="Hello"):
    reply = None

    while not reply:
        reply = recognize()
    communicator.send_to_ui("user", reply)
    return reply.lower()
コード例 #3
0
ファイル: say.py プロジェクト: Arduino-Projects/jeeves
def say(what):
    command = {
        "Darwin": "say",
        "Linux": "espeak"
    }[platform.system()]

    call([command, what])
    communicator.send_to_ui("jeeves", what)
コード例 #4
0
ファイル: user_input.py プロジェクト: Arduino-Projects/jeeves
def user_input(message):
    print(message)
    reply = None

    while not reply:
        reply = recognize()
    communicator.send_to_ui("user", reply)
    return reply
コード例 #5
0
ファイル: segregator.py プロジェクト: Arduino-Projects/jeeves
 def __init__(self, sentence):
     communicator.send_to_ui("user", sentence)
     self.words = nltk.word_tokenize(sentence)
コード例 #6
0
ファイル: segregator.py プロジェクト: JyotsnaGorle/jeeves
 def __init__(self, sentence):
     communicator.send_to_ui("user", sentence)
     sentence = self.command_exists(sentence)
     self.words = nltk.word_tokenize(sentence)
     print self.words
コード例 #7
0
ファイル: segregator.py プロジェクト: rahul080327/jeeves
 def __init__(self, sentence):
     communicator.send_to_ui("user", sentence)
     sentence = self.command_exists(sentence)
     self.words = nltk.word_tokenize(sentence)
     print self.words
コード例 #8
0
ファイル: say.py プロジェクト: sudhamshk/jeeves
def say(what):
    command = {"Darwin": "say", "Linux": "espeak"}[platform.system()]

    call([command, what])
    communicator.send_to_ui("jeeves", what)
コード例 #9
0
ファイル: segregator.py プロジェクト: sudhamshk/jeeves
 def __init__(self, sentence):
     communicator.send_to_ui("user", sentence)
     self.words = nltk.word_tokenize(sentence)