Add quick answers about Lumi's body and Cutshion; improve weather and news reading
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -9,6 +9,8 @@ from assistant import quick_answers as qa
|
||||
TALK = [("what does cutshion make?", "Cutshion makes robot applications, such as barista and cooking robots.")]
|
||||
|
||||
KIND = { # words (no talk before) -> kind
|
||||
"how many employees does Cutshion have?": "co_unknown", "직원이 몇 명이에요?": "co_unknown",
|
||||
"how old is Cutshion?": "co_founded", "대표가 누구예요?": "co_ceo", # company kinds: bank_words/company.py
|
||||
"who made you?": "maker", "Lumi, who built you?": "maker", "누가 만들었어요?": "maker", "어느 회사 로봇이에요?": "maker",
|
||||
"what's your name?": "name", "이름이 뭐예요?": "name", "니 이름 머야": "name",
|
||||
"how old are you?": "age", "몇 살이에요?": "age", "너 몇 살이야?": "age",
|
||||
@@ -35,8 +37,8 @@ NEVER = [ # no talk before: never a quick answer
|
||||
"can you see me?", "what am I holding?", "what colour is my shirt?", "how old do I look?", "how tall am I?",
|
||||
"나 보여?", "내 옷 무슨 색이야?", "카메라로 뭐 보여요?",
|
||||
"come here", "follow me", "wave at me", "sing a song", "이리 와", "손 흔들어 줘", "노래 불러 줘",
|
||||
"how many employees does Cutshion have?", "직원이 몇 명이에요?", "how much do you cost?", "가격이 얼마예요?",
|
||||
"how long does charging take?", "충전 얼마나 걸려요?", "how old is Cutshion?", "who is the CEO?", "대표가 누구예요?",
|
||||
"how much do you cost?", "가격이 얼마예요?",
|
||||
"how long does charging take?", "충전 얼마나 걸려요?", "who is the CEO?",
|
||||
"what's the weather?", "what time does the show start?", "몇 시에 끝나요?", "thanks", "고마워요", "okay", "bye",
|
||||
"goodbye", "May I ask you something?",
|
||||
"what's your name and how old are you?", "who made you? and why?", "how much can you lift?",
|
||||
@@ -114,7 +116,7 @@ def main():
|
||||
for lang, says in lines.items():
|
||||
for s in says:
|
||||
if kind in FACT and not re.search(FACT[kind], s, re.I) or lang == "ko" and \
|
||||
(not re.search(r"(?:요|다)[.!]?$", s) or re.search(r"컷션|커션", s)):
|
||||
(not re.search(r"(?:요|다)[.!?]?$", s) or re.search(r"컷션|커션", s)):
|
||||
bad += 1
|
||||
print(f"FAIL answer {kind}/{lang}: {s}")
|
||||
a, b = qa.answer("how old are you?", "en"), qa.answer("how old are you?", "en")
|
||||
|
||||
Reference in New Issue
Block a user