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:
@@ -0,0 +1,290 @@
|
||||
"""Quick answers about Cutshion Company (assistant/quick_answers.py): what a visitor asks first about the company that
|
||||
developed Lumi, answered at once. Every answer is a fact of knowledge/cutshion_en.md; keep them in step. What the notes
|
||||
do not know (prices, employees, revenue, hiring, the next exhibition) is answered "not known" with the way to ask.
|
||||
The talk after it ("tell me more", "and the price?") goes to the LLM with the company notes (brain.COMPANY_TALK).
|
||||
|
||||
Wordings are made from each kind's English frames and Korean stems with every way of naming the company and every
|
||||
Korean speech level (반말, 해요체, 하십시오체, honorific, dialect), plus Konglish and whisper slips.
|
||||
"""
|
||||
|
||||
EN_CO = ["cutshion", "cutshion company", "your company", "cushion", "cutsion"]
|
||||
KO_CO = ["쿳션", "쿳션은", "쿳션이", "쿠션", "커션", "컷션", "너희 회사", "니네 회사", "루미 만든 회사", "회사"]
|
||||
ASK = ["야", "예요", "에요", "니", "입니까", "인가요", "이에요", "고", "여", "죠", "임", "이야", "이세요"] # after a noun
|
||||
HOW = ["어떻게 돼", "어떻게 돼요", "어떻게 되니", "어떻게 되나요", "어떻게 되세요", "어떻게 되십니까", "어떻게 됩니까", "어떻게 되노", "우째 되노"]
|
||||
TELL = ["알려 줘", "알려 주세요", "알려 줄래", "알려 주실래요", "알려 주시겠어요", "말해 줘", "말해 주세요", "가르쳐 줘", "좀 알려 줘",
|
||||
"좀 알려 주세요", "궁금해요", "궁금합니다", "알려 주십시오"]
|
||||
|
||||
|
||||
def _en(frames):
|
||||
return [f.format(c=c) for f in frames for c in EN_CO]
|
||||
|
||||
|
||||
def _ko(stems, ends=None):
|
||||
"""stems with "{c}" (the company) and optional endings."""
|
||||
out = []
|
||||
for s in stems:
|
||||
for c in KO_CO:
|
||||
t = s.format(c=c)
|
||||
out.extend([t + e for e in ends] if ends else [t])
|
||||
return out
|
||||
|
||||
|
||||
SPEC = {
|
||||
"co_what": (
|
||||
["what is {c}", "what's {c}", "tell me about {c}", "about {c}", "{c}", "what kind of company is {c}", "what does {c} do", "who is {c}",
|
||||
"what does {c} make", "can you tell me about {c}", "what's {c} about", "introduce {c}", "{c} what is it",
|
||||
"what business is {c} in", "give me the short version of {c}"],
|
||||
_ko(["{c} 뭐", "{c} 무슨 회사", "{c} 어떤 회사"], ASK) + _ko(["{c} 뭐 하는 회사", "{c} 뭐 하는 곳"], ASK) +
|
||||
_ko(["{c} 소개 ", "{c}에 대해 "], TELL) + _ko(["{c} 뭐 만들어", "{c} 뭐 만들어요", "{c} 뭐 만드니", "{c} 뭐 만듭니까",
|
||||
"{c} 뭐 만드세요", "{c} 뭐 하는데", "{c} 뭐 하노", "{c} 뭐 해요"]),
|
||||
{"en": ["Cutshion is a Korean robot company, founded in 2022, that makes robot applications, such as barista, AI drawing, "
|
||||
"cooking and ice cream robots. Its head office is in Seoul. What would you like to know more about?",
|
||||
"Cutshion Company developed me. It's a young robot company from Seoul, founded in 2022, that builds robot apps like "
|
||||
"barista, drawing, cooking and ice cream robots. What else would you like to know?"],
|
||||
"ko": ["쿳션은 2022년에 설립된 한국 로봇 회사로, 바리스타 로봇, AI 드로잉 로봇, 조리 로봇, 아이스크림 로봇 같은 로봇 "
|
||||
"애플리케이션을 만들어요. 본사는 서울에 있어요. 더 궁금하신 점이 있으세요?",
|
||||
"쿳션은 저를 개발한 서울의 로봇 회사예요. 2022년에 설립됐고, 바리스타, 드로잉, 조리, 아이스크림 로봇 같은 로봇 앱을 "
|
||||
"만들어요. 또 궁금하신 게 있으세요?"]}),
|
||||
"co_founded": (
|
||||
["when was {c} founded", "when was {c} started", "when did {c} start", "how old is {c}", "what year was {c} founded",
|
||||
"when was {c} established", "since when does {c} exist", "how long has {c} been around", "{c} founded when",
|
||||
"how old is the company", "when was the company founded"],
|
||||
_ko(["{c} 언제 생겼어", "{c} 언제 생겼어요", "{c} 언제 생겼니", "{c} 언제 설립됐어요", "{c} 언제 설립됐습니까", "{c} 언제 세워졌어",
|
||||
"{c} 언제 만들어졌어요", "{c} 몇 년 됐어", "{c} 몇 년 됐어요", "{c} 몇 년 되셨어요", "{c} 몇 년 됐노", "{c} 생긴 지 얼마나 됐어요",
|
||||
"{c} 몇 년도에 생겼어", "{c} 창립이 언제예요", "{c} 설립 연도가 언제예요", "{c} 설립일이 언제입니까", "{c} 언제 창업했어요",
|
||||
"{c} 언제 시작했어", "{c} 몇 살이야", "{c} 나이가 어떻게 돼요"]) + ["회사 몇 년 됐어요", "회사 언제 생겼어요"],
|
||||
{"en": ["Cutshion was founded in July 2022, so it's a young startup.",
|
||||
"In July 2022. Cutshion is a young robot startup, a certified venture business."],
|
||||
"ko": ["쿳션은 2022년 7월에 설립됐어요. 젊은 스타트업이에요.",
|
||||
"2022년 7월에 법인을 설립했어요. 벤처기업 인증을 받은 젊은 로봇 스타트업이에요."]}),
|
||||
"co_ceo": (
|
||||
["who is the ceo of {c}", "who's {c}'s ceo", "who runs {c}", "who is the boss of {c}", "who founded {c}",
|
||||
"who is the founder of {c}", "who leads {c}", "who is the president of {c}", "what's the name of {c}'s ceo",
|
||||
"who is the ceo", "who's the ceo", "who's your ceo", "who is your boss", "what is the name of the ceo"],
|
||||
_ko(["{c} 대표가 누구", "{c} 대표님이 누구", "{c} 사장이 누구", "{c} 사장님이 누구", "{c} 대표이사가 누구", "{c} 창업자가 누구",
|
||||
"{c} 대표 이름이 뭐", "{c} 대표님 성함이 어떻게 되세요", "{c} 대표님 성함이 뭐"], ASK) +
|
||||
_ko(["{c} 누가 세웠어", "{c} 누가 세웠어요", "{c} 누가 창업했어요", "{c} 누가 운영해요", "{c} 대표님은 누구신가요", "{c} 대표 누고",
|
||||
"{c} 대표 누구여", "{c} 대표 누군데", "{c} 대표 알려 줘", "{c} ceo가 누구야", "{c} ceo 누구예요"]) +
|
||||
["대표가 누구예요", "대표 이름이 뭐예요", "대표님 이름이 뭐예요", "대표님 성함이 어떻게 되세요", "사장님이 누구예요"],
|
||||
{"en": ["Cutshion's CEO is Lee Min-seok. Cutshion is his third company.",
|
||||
"Lee Min-seok is the CEO of Cutshion; it's the third company he has founded."],
|
||||
"ko": ["쿳션의 대표이사는 이민석 대표님이에요. 쿳션은 대표님의 세 번째 회사예요.",
|
||||
"이민석 대표님이 쿳션의 대표이사예요. 대표님이 세 번째로 세운 회사예요."]}),
|
||||
"co_hq": (
|
||||
["where is {c}", "where's {c}", "where is {c} located", "where is {c}'s office", "where is {c}'s head office",
|
||||
"what's {c}'s address", "where is {c} based", "is {c} in seoul", "which city is {c} in", "where are you from company",
|
||||
"where is the company", "where is the head office", "what's the company's address", "where is your company"],
|
||||
_ko(["{c} 어디 있어", "{c} 어디 있어요", "{c} 어디 있니", "{c} 어디 있습니까", "{c} 어디 있으세요", "{c} 어디예요", "{c} 어디야",
|
||||
"{c} 어디에 있나요", "{c} 어디 있노", "{c} 어딨어", "{c} 어딨어요", "{c} 본사가 어디예요", "{c} 본사 어디야", "{c} 본사 위치가 어디입니까",
|
||||
"{c} 주소가 어떻게 돼요", "{c} 주소 알려 줘", "{c} 주소가 어디예요", "{c} 사무실 어디예요", "{c} 사무실이 어디 있어요",
|
||||
"{c} 위치가 어디예요", "{c} 서울에 있어요", "{c} 어느 동네에 있어요", "{c} 어데 있노", "{c} 어디 있슈"]) +
|
||||
["회사 어디 있어요", "본사가 어디예요", "회사 위치가 어디예요"],
|
||||
{"en": ["Cutshion's head office is in Seoul: room 709, Mullae SK V1 Center, 10 Seonyu-ro 9-gil, Yeongdeungpo-gu.",
|
||||
"In Seoul, Korea. The head office is at the Mullae SK V1 Center in Yeongdeungpo-gu, room 709."],
|
||||
"ko": ["쿳션 본사는 서울시 영등포구 선유로 9길 10, 문래 SK V1 Center 709호예요.",
|
||||
"서울 영등포구에 있어요. 본사는 문래 SK V1 Center 709호예요."]}),
|
||||
"co_offices": (
|
||||
["does {c} have other offices", "where are {c}'s offices", "does {c} have a factory", "where is {c}'s factory",
|
||||
"does {c} have a branch in daegu", "does {c} have an office in america", "does {c} have a us office",
|
||||
"where is {c}'s research lab", "does {c} have a lab", "how many offices does {c} have", "is {c} in the us"],
|
||||
_ko(["{c} 지사 있어요", "{c} 지사 어디 있어요", "{c} 지사가 어디야", "{c} 공장 있어요", "{c} 공장 어디예요", "{c} 공장이 어디 있습니까",
|
||||
"{c} 연구소 어디예요", "{c} 연구소 있어", "{c} 대구 지사 있어요", "{c} 미국 법인 있어요", "{c} 미국에도 있어요", "{c} 미국 지사 어디야",
|
||||
"{c} 강남 사무소 어디예요", "{c} 사무실 몇 개예요", "{c} 지점 어디 있노", "{c} 해외 지사 있어요"]) +
|
||||
["where is the factory", "공장이 어디예요", "쿳션 공장 어디 있어요"],
|
||||
{"en": ["Besides the head office in Seoul, Cutshion has the Mullae Factory in the same building, a Gangnam office, a research "
|
||||
"lab in Gangseo-gu, a Daegu branch and a US company in McLean, Virginia.",
|
||||
"Cutshion's places: the Seoul head office and Mullae Factory, a Gangnam office, a research lab in Magok, a branch in "
|
||||
"Daegu, and a US company in McLean, Virginia."],
|
||||
"ko": ["서울 본사 말고도, 같은 건물에 쿳션 문래 팩토리가 있고, 강남사무소, 강서구 마곡 연구소, 대구지사, 미국 버지니아주 "
|
||||
"맥린의 미국법인이 있어요.",
|
||||
"본사와 문래 팩토리는 서울 영등포구에 있고, 강남사무소, 마곡 연구소, 대구지사, 미국 맥린에 미국법인이 있어요."]}),
|
||||
"co_contact": (
|
||||
["how do i contact {c}", "how can i contact {c}", "what's {c}'s phone number", "{c} phone number", "{c} email",
|
||||
"what's {c}'s email", "what is {c}'s website", "{c} website", "how can i reach {c}", "contact {c} how",
|
||||
"how do i get in touch with {c}", "what's the company's phone number", "{c} contact info"],
|
||||
_ko(["{c} 연락처", "{c} 전화번호", "{c} 이메일", "{c} 메일 주소", "{c} 홈페이지", "{c} 웹사이트"], ["", " 알려 줘", " 알려 주세요",
|
||||
"가 뭐예요", " 뭐야", "가 어떻게 돼요",
|
||||
"가 어떻게 되십니까", " 있어요", " 좀"]) +
|
||||
_ko(["{c}에 어떻게 연락해요", "{c}에 연락하려면 어떻게 해요", "{c}에 문의하려면 어떻게 해", "{c} 연락 어떻게 하노",
|
||||
"{c}에 어떻게 연락드려요", "{c} 문의는 어디로 해요"]),
|
||||
{"en": ["You can reach Cutshion at 070-8959-2960 or cutshion@cutshion.com, or through the contact form on cutshion.com.",
|
||||
"Phone 070-8959-2960, email cutshion@cutshion.com, and the website is cutshion.com."],
|
||||
"ko": ["쿳션 연락처는 전화 070-8959-2960, 이메일 cutshion@cutshion.com이에요. 홈페이지 cutshion.com의 문의하기도 있어요.",
|
||||
"전화는 070-8959-2960, 이메일은 cutshion@cutshion.com, 홈페이지는 cutshion.com이에요."]}),
|
||||
"co_slogan": (
|
||||
["what is {c}'s slogan", "{c} slogan", "what's {c}'s motto", "what is {c}'s mission", "what's {c}'s goal",
|
||||
"what is {c}'s vision", "what does {c} want to become"],
|
||||
_ko(["{c} 슬로건이 뭐", "{c} 슬로건", "{c} 모토가 뭐", "{c} 목표가 뭐", "{c} 비전이 뭐", "{c} 미션이 뭐", "{c} 캐치프레이즈가 뭐"], ASK),
|
||||
{"en": ["Cutshion's slogan is \"Soft & Flexible Idea\", and its mission is to be \"The Best Robot Application Provider\": "
|
||||
"not only building robots, but robot apps and an ecosystem for them."],
|
||||
"ko": ["쿳션의 슬로건은 'Soft & Flexible Idea'예요. 로봇을 만들고 파는 것을 넘어 로봇 애플리케이션 생태계를 만드는 "
|
||||
"'The Best Robot Application Provider'가 목표예요."]}),
|
||||
"co_products": (
|
||||
["what robots does {c} make", "what products does {c} have", "what does {c} sell", "which robots does {c} build",
|
||||
"list {c}'s robots", "what are {c}'s products", "{c} products", "what robot apps does {c} make",
|
||||
"what robots does the company make", "what does your company make", "what other robots do you have"],
|
||||
_ko(["{c} 제품 뭐 있어", "{c} 제품 뭐 있어요", "{c} 제품이 뭐예요", "{c} 무슨 로봇 만들어", "{c} 무슨 로봇 만들어요", "{c} 어떤 로봇 만들어요",
|
||||
"{c} 어떤 로봇 만듭니까", "{c} 로봇 종류가 뭐 있어요", "{c} 로봇 뭐 있어", "{c} 제품 알려 줘", "{c} 제품 소개해 주세요", "{c} 뭐 팔아요",
|
||||
"{c} 무슨 제품 팔아", "{c} 로봇 뭐 만드노", "{c} 로봇 라인업이 어떻게 돼요", "{c} 어떤 로봇 있으세요", "{c} 다른 로봇도 있어요"]) +
|
||||
["회사는 어떤 로봇 만들어", "회사에서 무슨 로봇 만들어요", "쿳션은 뭐 만들어요"],
|
||||
{"en": ["Cutshion's robot apps are a barista robot, an AI drawing robot, a welding robot, a palletizing robot, a cooking "
|
||||
"robot, an ice cream robot, a candy ball robot and an educational robot kit. Its own technology is CUVision, "
|
||||
"Pionoid and GOMCOOK. Which one would you like to hear about?"],
|
||||
"ko": ["쿳션의 로봇 앱은 바리스타 로봇, AI 드로잉 로봇, 용접 로봇, 팔레타이징 로봇, 조리 로봇, 아이스크림 로봇, 캔디볼 로봇, "
|
||||
"교육용 로봇이에요. 자체 기술로 큐비전, 피오노이드, 곰쿡이 있어요. 어떤 게 궁금하세요?"]}),
|
||||
"co_awards": (
|
||||
["has {c} won any awards", "did {c} win any awards", "what awards has {c} won", "{c} awards", "any awards for {c}",
|
||||
"what prizes did {c} get", "has {c} won anything"],
|
||||
_ko(["{c} 상 받은 거 있어", "{c} 상 받은 거 있어요", "{c} 수상 경력 있어요", "{c} 수상 내역이 어떻게 돼요", "{c} 무슨 상 받았어요",
|
||||
"{c} 어떤 상 받았어", "{c} 상 탔어요", "{c} 수상 경력이 있습니까", "{c} 상 받은 적 있노", "{c} 어워드 받았어요"]),
|
||||
{"en": ["Cutshion won the RoboWorld Award 2023 for GOMCOOK, the RoboWorld Award 2024 for its mobile welding robot, the "
|
||||
"Excellence Award at the Venturium Demo Day in 2026, and the VivaTech Tech for Change Award in Paris in 2026."],
|
||||
"ko": ["쿳션은 로보월드 어워드 2023(곰쿡), 로보월드 어워드 2024(모바일 용접 로봇), 2026 벤처리움 데모데이 우수상, "
|
||||
"2026 비바테크 Tech for Change Award를 받았어요."]}),
|
||||
"co_exhibitions": (
|
||||
["which exhibitions has {c} been to", "what shows did {c} attend", "was {c} at ces", "has {c} been to ces",
|
||||
"where has {c} exhibited", "{c} exhibitions", "which trade fairs did {c} join"],
|
||||
_ko(["{c} 전시회 어디 나갔어요", "{c} 어느 전시회 갔어요", "{c} 전시회 참가했어요", "{c} CES 나갔어요", "{c} 시이에스 갔어",
|
||||
"{c} 전시 이력이 어떻게 돼요", "{c} 박람회 나간 적 있어요", "{c} 어떤 전시회 나갔습니까", "{c} 전시회 어데 갔노"]),
|
||||
{"en": ["Cutshion has shown its robots at RoboWorld, IFA Berlin, the Gangnam Robot Plus Festival, Smart Life Week, the Korea "
|
||||
"ICT Expo in Japan, CES in Las Vegas in 2025 and 2026, the NRA Show in Chicago and VivaTech in Paris. Which show "
|
||||
"comes next I don't know."],
|
||||
"ko": ["쿳션은 로보월드, 베를린 IFA, 강남 로봇 플러스 페스티벌, 스마트 라이프 위크, 일본 코리아 ICT 엑스포, 라스베이거스 "
|
||||
"CES 2025와 2026, 시카고 NRA 쇼, 파리 비바테크에 참가했어요. 다음 전시회는 저도 몰라요."]}),
|
||||
"co_investment": (
|
||||
["has {c} got investors", "who invested in {c}", "did {c} get investment", "how much funding does {c} have",
|
||||
"is {c} funded", "{c} investment", "has {c} raised money"],
|
||||
_ko(["{c} 투자 받았어요", "{c} 투자 받은 적 있어", "{c} 투자자가 누구예요", "{c} 누가 투자했어요", "{c} 투자 얼마 받았어요",
|
||||
"{c} 투자 유치했어요", "{c} 팁스 선정됐어요", "{c} 벤처기업이에요", "{c} 투자 받았노"]),
|
||||
{"en": ["In August 2025 Cutshion got a seed investment of 500 million won from CNT Tech and Evergreen Investment Partners, "
|
||||
"and in December 2025 it was selected for the TIPS Global Track program."],
|
||||
"ko": ["쿳션은 2025년 8월 씨엔티테크와 에버그린투자파트너스에서 5억 원 시드 투자를 받았고, 2025년 12월 팁스 글로벌 트랙에 "
|
||||
"선정됐어요."]}),
|
||||
"co_partners": (
|
||||
["who are {c}'s partners", "{c} partners", "which companies does {c} work with", "does {c} work with omron",
|
||||
"who does {c} partner with"],
|
||||
_ko(["{c} 파트너사가 어디예요", "{c} 협력사가 어디야", "{c} 파트너 회사 알려 줘", "{c} 어느 회사랑 일해요", "{c} 협력 업체가 어디입니까"]),
|
||||
{"en": ["Cutshion's website lists partners such as OMRON, Zimmer Group Korea, Screen HD Korea, BorgWarner and THIRA Robotics, "
|
||||
"and in 2026 it signed a partnership with PEITIAN Robotics."],
|
||||
"ko": ["쿳션 홈페이지에는 오므론, 짐머 그룹 코리아, 스크린 HD 코리아, 보그워너, 티라로보틱스 같은 파트너사가 있고, 2026년에 "
|
||||
"PEITIAN 로보틱스와 파트너십을 맺었어요."]}),
|
||||
"co_unknown": (
|
||||
["how many employees does {c} have", "how many people work at {c}", "how big is {c}", "what is {c}'s revenue",
|
||||
"how much money does {c} make", "is {c} hiring", "can i work at {c}", "how do i get a job at {c}", "is {c} on the stock market",
|
||||
"is {c} listed", "what are {c}'s opening hours", "how many robots has {c} sold", "what's {c}'s sales",
|
||||
"how many employees does the company have", "how many people work there", "is the company hiring"],
|
||||
_ko(["{c} 직원 몇 명이에요", "{c} 직원이 몇 명이야", "{c} 직원 수가 어떻게 돼요", "{c} 직원 몇 명 있어", "{c} 사람 몇 명 일해요",
|
||||
"{c} 매출이 얼마예요", "{c} 매출 얼마야", "{c} 돈 얼마 벌어요", "{c} 채용해요", "{c} 채용 중이에요", "{c} 입사하려면 어떻게 해요",
|
||||
"{c} 상장했어요", "{c} 상장 회사예요", "{c} 영업시간이 어떻게 돼요", "{c} 몇 시에 문 열어요", "{c} 로봇 몇 대 팔았어요",
|
||||
"{c} 판매 대수가 어떻게 돼요", "{c} 직원 몇 명이고", "{c} 직원 수가 어떻게 되십니까", "{c} 규모가 어떻게 돼요"]) +
|
||||
["직원이 몇 명이에요", "직원 몇 명이에요"],
|
||||
{"en": ["I don't have that information. Please ask a staff member, or contact Cutshion at 070-8959-2960 or "
|
||||
"cutshion@cutshion.com."],
|
||||
"ko": ["그건 제가 가진 정보가 없어요. 직원에게 물어보시거나 쿳션(070-8959-2960, cutshion@cutshion.com)에 문의해 주세요."]}),
|
||||
"price": (
|
||||
["how much is this robot", "what's the price of this robot", "how much does lumi cost", "how much does a robot like you cost",
|
||||
"can i buy you", "are you for sale", "can i rent you", "how much to rent you", "is lumi for sale",
|
||||
"how much is the barista robot", "how much does the ice cream robot cost", "what do cutshion's robots cost",
|
||||
"how much does {c} charge for a robot", "{c} robot prices", "how expensive are you"],
|
||||
["가격이 어떻게 돼요", "가격이 어떻게 되세요", "가격이 어떻게 됩니까", "가격 알려 줘", "가격 알려 주세요", "가격이 궁금해요", "로봇 가격이 어떻게 돼요",
|
||||
"루미 가격이 어떻게 돼요", "너 가격 알려 줘", "너 살 수 있어요", "너 팔아요", "너 판매해요", "루미 판매해요", "렌탈 돼요", "대여 돼요",
|
||||
"렌탈 가격 알려 주세요", "바리스타 로봇 가격 알려 주세요", "아이스크림 로봇 가격이 어떻게 돼요", "로봇 사고 싶어요", "이 로봇 사려면 어떻게 해요",
|
||||
"구매하려면 어떻게 해요", "가격 좀 알려 주실래요", "가격 우째 되노", "값이 어떻게 돼요", "price 알려 줘", "가격 how much"] +
|
||||
_ko(["{c} 로봇 가격 알려 주세요", "{c} 로봇 가격이 어떻게 돼요", "{c} 로봇 사려면 어떻게 해요"]),
|
||||
{"en": ["I don't know the prices: they aren't on Cutshion's website. Please ask a staff member, or contact Cutshion at "
|
||||
"070-8959-2960 or cutshion@cutshion.com."],
|
||||
"ko": ["가격은 홈페이지에 없어서 저도 몰라요. 직원에게 물어보시거나 쿳션(070-8959-2960, cutshion@cutshion.com)에 문의해 주세요."]}),
|
||||
}
|
||||
|
||||
ROBOTS = { # one robot app or technology of Cutshion: (English names, Korean names, answers)
|
||||
"co_barista": (["barista robot", "coffee robot", "robot barista"], ["바리스타 로봇", "커피 로봇", "로봇 바리스타", "바리스타 로봇은"],
|
||||
{"en": ["Cutshion's barista robot makes espresso fully automatically: it runs a real espresso machine and grinds, doses, "
|
||||
"tamps and extracts by itself, with the same taste every time. Mega Coffee signed a yearly supply agreement for it."],
|
||||
"ko": ["쿳션의 바리스타 로봇은 에스프레소 머신을 직접 제어해서 원두 분쇄, 도징, 탬핑, 추출까지 완전히 자동으로 해요. "
|
||||
"언제나 같은 맛을 내고, 메가커피와 연간 공급 계약을 맺었어요."]}),
|
||||
"co_drawing": (["drawing robot", "ai drawing robot", "portrait robot", "painting robot"], ["드로잉 로봇", "그림 그리는 로봇", "AI 드로잉 로봇", "초상화 로봇"],
|
||||
{"en": ["Cutshion's AI drawing robot takes your photo, AI turns it into a line drawing, and the robot arm draws it on a "
|
||||
"canvas. One button starts it, and it's popular at events and in education."],
|
||||
"ko": ["쿳션의 AI 드로잉 로봇은 사진을 찍으면 AI가 라인 드로잉으로 바꾸고, 로봇 팔이 캔버스에 그려 줘요. 버튼 하나로 "
|
||||
"시작하고, 행사와 교육에서 인기가 많아요."]}),
|
||||
"co_cooking": (["cooking robot", "chicken robot", "kitchen robot", "chimaek robot"], ["조리 로봇", "요리 로봇", "치킨 로봇", "치맥 로봇"],
|
||||
{"en": ["Cutshion's cooking robot is an AI cooking robot for personalised cooking, with Cutshion's own vision and the "
|
||||
"GOMCOOK platform. It keeps the taste the same and lowers staff and ingredient costs."],
|
||||
"ko": ["쿳션의 조리 로봇은 개인 맞춤 조리를 하는 AI 조리 로봇이고, 곰쿡 플랫폼과 함께 써요. 같은 맛을 지키고 인건비와 "
|
||||
"식재료 비용을 줄여 줘요."]}),
|
||||
"co_icecream": (["ice cream robot", "icecream robot", "soft ice cream robot"], ["아이스크림 로봇", "아이스크림 기계", "소프트아이스크림 로봇"],
|
||||
{"en": ["Cutshion's ice cream robot serves soft ice cream with no staff: you order on a kiosk and it makes and hands "
|
||||
"over the ice cream in about 30 seconds. It holds 40 cones and weighs 500 kg."],
|
||||
"ko": ["쿳션의 아이스크림 로봇은 키오스크 주문부터 아이스크림 추출, 전달까지 무인으로 해요. 한 개에 약 30초가 걸리고 "
|
||||
"콘을 40개 넣을 수 있어요. 무게는 500kg이에요."]}),
|
||||
"co_candyball": (["candy ball robot", "candy robot", "candyball robot"], ["캔디볼 로봇", "사탕 로봇", "캔디 로봇"],
|
||||
{"en": ["Cutshion's candy ball robot is a fun event robot: you choose a colour on the touch screen, and it picks a "
|
||||
"candy ball of that colour and gives it to you, in about 20 seconds."],
|
||||
"ko": ["쿳션의 캔디볼 로봇은 터치스크린에서 고른 색의 캔디볼을 로봇이 뽑아서 주는 체험형 로봇이에요. 한 번에 약 "
|
||||
"20초가 걸려요."]}),
|
||||
"co_welding": (["welding robot", "welder robot", "mobile welding robot"], ["용접 로봇", "웰딩 로봇", "모바일 용접 로봇"],
|
||||
{"en": ["Cutshion's welding robot is a light collaborative welding robot: multi-pass arc welding, automatic seam "
|
||||
"tracking, taught by dragging the arm. The mobile welding robot won the RoboWorld Award 2024."],
|
||||
"ko": ["쿳션의 용접 로봇은 가벼운 협동 용접 로봇이에요. 다층 아크 용접과 용접선 자동 추적을 하고, 모바일 용접 로봇으로 "
|
||||
"로보월드 어워드 2024를 받았어요."]}),
|
||||
"co_palletizing": (["palletizing robot", "palletising robot", "palletizer", "stacking robot"], ["팔레타이징 로봇", "적재 로봇", "팔레트 로봇"],
|
||||
{"en": ["Cutshion's palletizing robot stacks finished products on pallets and can run 24 hours. Made with Screen, "
|
||||
"it's Korea's first palletizing robot for book publishing: up to 20 kg, about 15 seconds a cycle."],
|
||||
"ko": ["쿳션의 팔레타이징 로봇은 완성품을 팔레트에 자동으로 쌓고 24시간 돌릴 수 있어요. 스크린사와 함께 만든 "
|
||||
"국내 최초 출판 전용 팔레타이징 로봇이고, 20kg까지, 한 번에 약 15초예요."]}),
|
||||
"co_edukit": (["educational robot", "education kit", "robot training kit", "edu kit"], ["교육용 로봇", "교육 로봇", "교육 키트", "실습 키트"],
|
||||
{"en": ["Cutshion's educational robot is an all-in-one training kit in one flight case: a small cobot arm, practice "
|
||||
"modules, digital twin software and course materials, for schools, universities and companies."],
|
||||
"ko": ["쿳션의 교육용 로봇은 협동로봇, 실습 모듈, 디지털 트윈 소프트웨어, 교육 자료를 휴대용 케이스 하나에 담은 올인원 "
|
||||
"키트예요. 학교, 대학, 연구소, 기업 교육에 써요."]}),
|
||||
"co_cuvision": (["cuvision", "cu vision", "cutshion's ai vision"], ["큐비전", "쿠비전", "AI 비전"],
|
||||
{"en": ["CUVision is Cutshion's AI vision technology: it understands camera images, checks work piece surfaces and "
|
||||
"tracks 3D movement, for example for quality checks in smart factories."],
|
||||
"ko": ["큐비전은 카메라 영상을 AI로 이해하는 쿳션의 AI 비전 기술이에요. 공정물 표면을 분석하고 3D 움직임을 추적해서 "
|
||||
"스마트 팩토리 품질 검사 같은 데 써요."]}),
|
||||
"co_pionoid": (["pionoid", "pionoid platform"], ["피오노이드", "파이오노이드"],
|
||||
{"en": ["Pionoid is Cutshion's robot development platform: one robot API for robots of any maker, so the same robot "
|
||||
"app runs on different robots. It works like an app store, with Pionoid Factory and Pionoid Store."],
|
||||
"ko": ["피오노이드는 쿳션의 로봇 개발 플랫폼이에요. 제조사와 상관없이 하나의 통합 로봇 API로 같은 로봇 앱을 여러 "
|
||||
"로봇에서 돌릴 수 있고, 앱스토어처럼 앱을 공유해요."]}),
|
||||
"co_gomcook": (["gomcook", "gom cook"], ["곰쿡", "곰 쿡"],
|
||||
{"en": ["GOMCOOK is Cutshion's cooking robot platform for personalised cooking. It connects to delivery and ordering "
|
||||
"apps, covering order, payment, cooking and delivery, and won the RoboWorld Award 2023."],
|
||||
"ko": ["곰쿡은 쿳션의 조리 로봇 플랫폼이에요. 배달·주문 앱과 연동해서 주문, 결제, 조리, 배달을 하나로 하고, "
|
||||
"로보월드 어워드 2023을 받았어요."]}),
|
||||
}
|
||||
EN_ROBOT = ["what is the {r}", "what's the {r}", "tell me about the {r}", "what does the {r} do", "how does the {r} work",
|
||||
"explain the {r}", "what is cutshion's {r}", "tell me about cutshion's {r}", "{r}?", "what can the {r} do",
|
||||
"what's {r}", "what is {r}", "does cutshion make a {r}", "how fast is the {r}", "how heavy is the {r}", "how big is the {r}"]
|
||||
KO_ROBOT = [s + e for s in ["{r} 뭐", "{r} 뭐 하는 거", "{r} 어떤 거", "쿳션 {r} 뭐", "{r}이 뭐", "{r}는 뭐"] for e in ["야", "예요", "니", "입니까", "고", "여", "죠"]] + \
|
||||
[s + e for s in ["{r} 설명해", "{r} 소개해", "{r} 알려"] for e in [" 줘", " 주세요", " 주실래요", " 주십시오"]] + \
|
||||
["{r} 어떻게 작동해요", "{r} 어떻게 돼요", "{r} 뭐 해요", "{r} 뭐 해", "{r} 무게가 몇이에요", "{r} 얼마나 빨라요", "{r} 크기가 어떻게 돼요",
|
||||
"{r} 궁금해요", "{r} 뭐 할 수 있어", "{r} 어떻게 써요", "{r} 있어요"]
|
||||
|
||||
QUICK_KINDS = {}
|
||||
for _k, (_en, _ko_, _a) in SPEC.items():
|
||||
QUICK_KINDS[_k] = ([w for f in _en for w in ([f] if "{c}" not in f else [f.format(c=c) for c in EN_CO])] + _ko_, _a)
|
||||
for _k, (_en, _ko_, _a) in ROBOTS.items():
|
||||
QUICK_KINDS[_k] = ([f.format(r=r) for f in EN_ROBOT for r in _en] + [f.format(r=r) for f in KO_ROBOT for r in _ko_], _a)
|
||||
|
||||
QUICK = {
|
||||
"no": [
|
||||
# the company's robots asked to act, or the visitor's own: not a fact of the notes
|
||||
"make me a coffee", "커피 한 잔 만들어 줘", "draw me", "내 그림 그려 줘", "give me an ice cream", "아이스크림 줘", "can i have a candy",
|
||||
"사탕 하나 줘", "where can i get a coffee", "커피 어디서 마셔요", "where is the barista robot", "바리스타 로봇 어디 있어요",
|
||||
"where is the ice cream robot", "아이스크림 로봇 어디 있어요", "take me to the drawing robot", "드로잉 로봇한테 데려가 줘",
|
||||
"i like coffee", "커피 좋아해요", "is the coffee good", "커피 맛있어요", "my company makes robots too", "우리 회사도 로봇 만들어요",
|
||||
"i work at samsung", "저 삼성 다녀요", "what is a cushion", "쿠션 어디서 사요", "this cushion is soft", "쿠션 좋다",
|
||||
"what's jaka", "who is jaka", "자카가 뭐야", "jaka 로봇 뭐 있어", "what is samsung", "삼성은 뭐 하는 회사야", "what does google make",
|
||||
"who is the ceo of samsung", "삼성 대표가 누구야", "who is the ceo of openai", "where is google's office", "애플 본사 어디야",
|
||||
"how much is a coffee", "커피 얼마예요", "how much is the ice cream", "아이스크림 얼마예요", "얼마예요", "이거 얼마예요",
|
||||
"how much is this cup", "where can i buy a cushion", "price of bitcoin", "비트코인 가격 알려 줘", "삼성전자 주가 얼마야",
|
||||
"what time does the event start", "행사 몇 시에 끝나요", "who is the president", "대통령이 누구야",
|
||||
],
|
||||
}
|
||||
|
||||
for _en, _ko_, _a in ROBOTS.values(): # where it stands, or asked to work: the LLM / the rules
|
||||
QUICK["no"] += [f.format(r=r) for f in ["where is the {r}", "where's the {r}", "take me to the {r}", "is there a {r} here",
|
||||
"i want to see the {r}", "show me the {r}"] for r in _en]
|
||||
QUICK["no"] += [f.format(r=r) for f in ["{r} 어디 있어", "{r} 어디 있어요", "{r} 어디예요", "{r}한테 데려가 줘", "{r} 보여 줘", "{r} 여기 있어요"]
|
||||
for r in _ko_]
|
||||
@@ -0,0 +1,378 @@
|
||||
"""More quick-answer kinds about Lumi's body, sensors and limits (assistant/quick_answers.py), each with its answers.
|
||||
Every answer is a fact of knowledge/lumi_about_en.md; keep them in step. Wordings in English, Korean (반말, 해요체,
|
||||
하십시오체, honorific, dialect, Konglish, slips) and mixed; "no" wordings are commands and other things' facts that
|
||||
sound alike.
|
||||
|
||||
Questions the quick lane's guards leave to the LLM on purpose are not listed here: the cameras ("camera", "see"),
|
||||
faces ("recognise", "remember"), what it can lift or hold ("lift", "hold", "things"), the price.
|
||||
"""
|
||||
|
||||
|
||||
def _ko(stems, ends):
|
||||
"""Every stem with every ending: _ko(["라이다 있"], ["어", "어요"]) -> ["라이다 있어", "라이다 있어요"]."""
|
||||
return [s + e for s in stems for e in ends]
|
||||
|
||||
|
||||
HAVE = ["어", "어요", "니", "나요", "습니까", "으세요", "으십니까", "나", "노", "어유", "음"] # 있-
|
||||
CAN = ["어", "어요", "니", "나요", "습니까", "으세요", "나", "노", "어유"] # 수 있-
|
||||
WHAT = ["야", "예요", "에요", "니", "입니까", "인가요", "고", "여", "임"] # 뭐-
|
||||
|
||||
QUICK_KINDS = {
|
||||
"size": ([
|
||||
"how wide are you", "how wide is your base", "how wide is the robot", "what's your footprint", "what are your dimensions",
|
||||
"what is your size in centimeters", "how much floor space do you take", "how much room do you need",
|
||||
"how big is your base", "how deep are you", "what's your width", "how narrow a gap can you pass", "how narrow can a corridor be",
|
||||
"can you fit through a door", "how wide does the path need to be", "what are your measurements", "how wide r u",
|
||||
"dimensions?", "your dimensions please", "what size are you exactly",
|
||||
"폭이 얼마나 돼요", "폭이 몇 센티예요", "너비가 얼마예요", "가로 세로 몇이에요", "가로세로 크기가 어떻게 돼요", "크기가 어떻게 돼요",
|
||||
"크기가 어떻게 되세요", "크기가 어떻게 됩니까", "사이즈가 어떻게 돼", "사이즈 몇이야", "몸 크기가 얼마나 돼", "덩치가 얼마나 돼요",
|
||||
"베이스 크기가 몇이에요", "바닥 면적이 얼마나 돼요", "자리 얼마나 차지해요", "공간 얼마나 필요해요", "통로 폭이 얼마나 돼야 돼요",
|
||||
"좁은 데도 지나갈 수 있어요", "문 통과할 수 있어요", "몇 센티 통로까지 지나가요", "폭 몇이고", "크기가 우째 되노", "크기가 어찌 되유",
|
||||
"너 size 얼마야", "사이즈가 어떻게 되세요", "dimension이 어떻게 돼요", "가로 몇 cm야", "너비 몇 cm예요", "치수가 어떻게 돼요",
|
||||
], {"en": ["I'm 51 cm wide, 51 cm deep and 146 cm tall. I need a passage at least 70 cm wide.",
|
||||
"My base is 51 by 51 cm and I'm 146 cm tall, up to 186 cm with my lift. A way 70 cm wide is enough for me."],
|
||||
"ko": ["저는 가로 51cm, 세로 51cm, 키 146cm예요. 지나가려면 폭이 70cm 이상인 길이 필요해요.",
|
||||
"베이스가 51cm에 51cm이고, 키는 146cm, 리프트를 올리면 186cm까지 돼요. 폭 70cm 길이면 지나갈 수 있어요."]}),
|
||||
"payload": ([
|
||||
"what's your payload", "what is your payload", "what's your max payload", "payload?", "what payload can you handle",
|
||||
"how many kilograms can your gripper take", "what is the arm's payload", "maximum payload please",
|
||||
"how heavy an object can you pick up", "how heavy can a cup be for you", "what's the heaviest you can pick up",
|
||||
"가반하중이 몇이에요", "가반하중 몇 키로예요", "가반하중이 어떻게 돼요", "가반하중 몇이야", "가반 하중이 어떻게 되십니까",
|
||||
"최대 하중이 몇 킬로예요", "하중이 몇 키로야", "몇 킬로까지 집을 수 있어요", "몇 키로까지 집어", "얼마나 무거운 걸 집을 수 있어요",
|
||||
"제일 무거운 거 몇 키로까지 돼요", "팔이 몇 kg까지 돼요", "팔 하중이 얼마나 돼", "payload 몇이야", "페이로드가 몇이에요",
|
||||
"몇 키로까지 잡아", "몇 kg까지 잡을 수 있어요", "무게 몇까지 집을 수 있노", "가반하중 우째 되노",
|
||||
], {"en": ["My arm carries 2 kg including the gripper. The gripper weighs about 1 kg, an estimate, so I can hold roughly 1 kg in my hand.",
|
||||
"About 1 kg in my hand: the arm takes 2 kg in total, and the gripper is about 1 kg of that (an estimate). So far I've been tested with cups."],
|
||||
"ko": ["팔은 그리퍼를 포함해 2kg까지 들 수 있어요. 그리퍼가 약 1kg(추정치)이라서 손에는 약 1kg까지 들 수 있어요.",
|
||||
"손에는 약 1kg까지예요. 팔이 모두 2kg까지 드는데 그리퍼가 그중 약 1kg(추정치)이에요. 지금까지는 컵으로 시험해 봤어요."]}),
|
||||
"arm": ([
|
||||
"what arm do you have", "what kind of arm do you have", "what robot arm is that", "which arm do you use", "what is your arm",
|
||||
"how long is the robot arm", "how far can you reach", "what's your reach", "how far does your hand reach",
|
||||
"how many arms do you have", "do you have arms", "do you have two arms", "why only one arm", "is that a cobot arm",
|
||||
"what model is the arm",
|
||||
"팔은 뭐 써요", "무슨 팔이에요", "어떤 팔이야", "팔이 어떤 거예요", "팔 모델이 뭐예요", "로봇 팔이 뭐예요", "팔이 몇 개야",
|
||||
"팔이 몇 개예요", "팔이 하나예요", "왜 팔이 하나야", "팔 두 개 있어", "팔 길이가 얼마나 돼요", "팔이 얼마나 길어", "팔이 얼마나 길어요",
|
||||
"팔 길이 몇이에요", "팔이 어디까지 닿아요", "얼마나 멀리 손이 닿아", "팔 닿는 거리가 얼마예요", "팔 리치가 몇이에요",
|
||||
"협동 로봇 팔이에요", "코봇이에요 그 팔", "팔이 몇 개고", "팔이 우째 생겼노",
|
||||
"팔 길이가 어떻게 되십니까", "arm 뭐 써요", "arm 길이 몇이야", "팔 reach가 얼마야", "로봇 arm 모델 뭐야", "팔 몇 축이에요",
|
||||
], {"en": ["I have one arm, a Mini 2 collaborative arm with six joints. It reaches 58 cm and is precise to 0.1 mm.",
|
||||
"One Mini 2 collaborative arm: six joints, 58 cm reach, 2 kg payload including the gripper. It stops when it bumps into something."],
|
||||
"ko": ["팔은 하나예요. 관절이 6개인 Mini 2 협동 로봇 팔이고, 58cm까지 닿고 정밀도는 0.1mm예요.",
|
||||
"Mini 2 협동 로봇 팔 하나예요. 관절 6개, 길이 58cm, 그리퍼 포함 2kg까지 들고, 뭔가에 부딪히면 멈춰요."]}),
|
||||
"gripper": ([
|
||||
"what gripper do you have", "what gripper is that", "what's on the end of your arm", "what kind of hand do you have",
|
||||
"do you have a hand", "do you have fingers", "how many fingers do you have", "what's that gripper", "who makes your gripper",
|
||||
"how wide can your gripper open", "how wide can you grip", "how big a cup can you grab", "can you grab a paper cup",
|
||||
"can you pick up a paper cup", "how fast does the gripper close",
|
||||
"그리퍼 뭐 써요", "그리퍼가 뭐예요", "무슨 그리퍼야", "어떤 그리퍼예요", "손이 어떻게 생겼어", "손가락 몇 개야", "손가락이 몇 개예요",
|
||||
"손 있어요", "손가락 있어", "집게가 뭐예요", "집게 어디 거예요", "그리퍼 어디 제품이에요", "얼마나 넓게 벌어져요", "몇 센티까지 잡아요",
|
||||
"몇 센티까지 집을 수 있어요", "종이컵 집을 수 있어요", "종이컵도 잡아", "손가락이 몇 개고", "그리퍼 뭐 쓰노", "그리퍼 머여",
|
||||
"gripper 뭐 써요", "그리퍼 brand가 뭐야", "finger 몇 개야", "손 모양이 어때요", "어떤 손이 달려 있으세요",
|
||||
], {"en": ["I wear a Zimmer electric gripper with two long steel fingers, made for cups and glasses. I can grip firm things from about 6 to 9 cm wide.",
|
||||
"A Zimmer electric gripper with two steel fingers. It opens and closes in about a second and holds firm things 6 to 9 cm wide; a paper cup is too soft, it gets squeezed flat."],
|
||||
"ko": ["팔 끝에 짐머(Zimmer) 전동 그리퍼가 있어요. 긴 강철 손가락 두 개로 약 6cm에서 9cm 폭의 단단한 물건을 잡아요.",
|
||||
"짐머 전동 그리퍼이고 손가락은 두 개예요. 1초쯤에 열고 닫고, 6에서 9cm 폭의 단단한 걸 잡아요. 종이컵은 너무 물러서 눌려 버려요."]}),
|
||||
"lidar": ([
|
||||
"do you have a lidar", "do you have lidar", "what lidar do you use", "where is your lidar", "how far does your lidar go",
|
||||
"what's the range of your lidar", "do you have a laser scanner", "do you use a laser", "what is the laser for",
|
||||
"is that a lidar at the bottom", "how does your lidar work",
|
||||
"라이다 있어요", "라이다 있어", "라이다 있니", "라이다 있습니까", "라이다 있으세요", "라이다 달려 있어요", "라이다 뭐 써요", "라이다 어디 있어요",
|
||||
"라이다는 몇 미터까지 봐요", "라이다 범위가 어떻게 돼요", "레이저 스캐너 있어요", "레이저 센서 있어", "레이저 쏘는 거예요",
|
||||
"아래 있는 게 라이다예요", "밑에 빨간 불은 뭐예요", "라이다 있나", "라이다 있노", "라이더 있어요", "리다 있어", "lidar 있어요",
|
||||
"lidar 몇 미터야", "라이다 range 얼마야",
|
||||
], {"en": ["Yes, a 2D laser scanner, a lidar, at the bottom of my base. It measures from 2 cm to 10 metres over 240 degrees, 30 times a second.",
|
||||
"My lidar sits low in my base. I use it to make a map and to know where I am, and it sees obstacles up to 10 metres away."],
|
||||
"ko": ["네, 베이스 아래쪽에 2D 라이다(레이저 스캐너)가 있어요. 2cm부터 10m까지, 240도를 1초에 30번 재요.",
|
||||
"라이다는 베이스 아래쪽에 있어요. 지도를 만들고 제 위치를 알 때 쓰고, 10m 앞의 장애물까지 봐요."]}),
|
||||
"sensors": ([
|
||||
"what sensors do you have", "which sensors do you have", "what sensors are on you", "how many sensors do you have",
|
||||
"list your sensors", "what kind of sensors do you use", "do you have ultrasonic sensors", "how many ultrasonic sensors",
|
||||
"do you have a bumper", "do you have an imu", "what are your sensors", "sensors?",
|
||||
"센서 뭐 있어요", "센서 뭐 있어", "센서가 뭐 있니", "센서는 뭐가 있습니까", "센서 몇 개예요", "센서 몇 개야", "센서 어떤 거 써요",
|
||||
"무슨 센서 달려 있어요", "어떤 센서가 있으세요", "초음파 센서 있어요", "초음파 센서 몇 개야", "범퍼 있어요", "센서 종류가 뭐예요",
|
||||
"센서 뭐 있노", "센서 머 있어", "센서 뭐 달렸슈", "sensor 뭐 있어요", "너 sensor 몇 개야", "센서 list 알려 줘",
|
||||
], {"en": ["I have a 2D lidar, three depth cameras, five ultrasonic sensors, an infrared sensor, an inertial sensor and a bumper, and six microphones.",
|
||||
"A lidar for the map, three 3D cameras, five ultrasonic sensors, an inertial sensor and a bumper that stops me when it's pressed."],
|
||||
"ko": ["2D 라이다, 깊이 카메라 세 대, 초음파 센서 5개, 적외선 센서, 관성 센서, 범퍼가 있고, 마이크도 6개 있어요.",
|
||||
"지도용 라이다, 3D 카메라 세 대, 초음파 센서 5개, 관성 센서, 그리고 눌리면 저를 멈추는 범퍼가 있어요."]}),
|
||||
"stairs": ([
|
||||
"can you climb stairs", "can you go up stairs", "can you go upstairs", "can you take the stairs", "can you use stairs",
|
||||
"can you climb steps", "can you go over a step", "can you drive up a ramp", "can you go up a slope", "can you go over bumps",
|
||||
"how high a step can you climb", "can you drive on a slope", "can you use the escalator", "can you take the elevator",
|
||||
"계단 올라갈 수 있어", "계단 올라갈 수 있어요", "계단 올라갈 수 있니", "계단 오를 수 있습니까", "계단 오르실 수 있으세요",
|
||||
"계단 갈 수 있어", "계단 돼요", "계단도 가요", "2층 올라갈 수 있어요", "문턱 넘을 수 있어요", "턱 넘을 수 있어", "경사로 올라가요",
|
||||
"비탈길 갈 수 있어요", "오르막 갈 수 있어", "에스컬레이터 탈 수 있어요", "엘리베이터 탈 수 있어", "계단 올라갈 수 있나",
|
||||
"계단 올라가나", "계단 오를 수 있노", "계단 올라가유", "stairs 올라갈 수 있어", "계단 climb 돼요", "slope 올라가요",
|
||||
], {"en": ["No, I can't climb stairs: I drive on wheels. I can go over a step of at most 1.5 cm and up a slope of at most 8 degrees.",
|
||||
"Stairs, no. Small bumps up to 1.5 cm and slopes up to 8 degrees are fine, and I need a way at least 70 cm wide."],
|
||||
"ko": ["아니요, 계단은 못 올라가요. 바퀴로 다녀서 1.5cm 이하의 턱과 8도 이하의 경사만 갈 수 있어요.",
|
||||
"계단은 못 가요. 1.5cm까지의 턱과 8도까지의 경사는 괜찮고, 폭 70cm 이상인 길이 필요해요."]}),
|
||||
"turn_range": ([
|
||||
"how far can your head turn", "how far does your head turn", "can your head turn all the way around",
|
||||
"how many degrees can your head turn", "can you turn your head 360 degrees", "how far can you tilt your head",
|
||||
"how far can your waist turn", "how far does your waist rotate", "can your waist spin all the way",
|
||||
"can you rotate your waist", "can your body turn", "what's the range of your head",
|
||||
"고개 몇 도까지 돌아가", "고개 몇 도까지 돌아가요", "고개가 얼마나 돌아가요", "머리 몇 도까지 돌아가요", "머리가 360도 돌아가요",
|
||||
"고개가 끝까지 돌아가", "머리 얼마나 돌릴 수 있어요", "고개 위아래로 얼마나 움직여요", "허리 몇 도까지 돌아가요", "허리가 얼마나 돌아가",
|
||||
"허리 돌릴 수 있어요", "허리 회전 몇 도예요", "몸통 얼마나 돌아가요", "머리 회전 범위가 어떻게 됩니까", "고개 몇 도까지 돌아가노",
|
||||
"모가지 얼마나 돌아가", "head 몇 도까지 돌아가", "waist 회전 몇 도야", "고개 rotation 범위가 어떻게 돼요",
|
||||
], {"en": ["My head turns up to 180 degrees left or right and tilts up and down within 40 degrees. My waist turns up to 160 degrees each way.",
|
||||
"Head: 180 degrees to each side, and a 40-degree tilt. Waist: 160 degrees to each side."],
|
||||
"ko": ["머리는 좌우로 180도까지 돌고, 위아래로 40도 범위에서 움직여요. 허리는 좌우로 160도까지 돌아가요.",
|
||||
"고개는 양쪽으로 180도, 위아래로 40도 범위예요. 허리는 양쪽으로 160도까지 돌아요."]}),
|
||||
"grow": ([
|
||||
"can you grow taller", "can you get taller", "can you change your height", "can you make yourself taller",
|
||||
"how tall can you get", "what's your maximum height", "how high can you go up", "how far can you rise",
|
||||
"can you go up and down", "what does the lift do", "what's the column for", "how high can you stretch",
|
||||
"키 커질 수 있어", "키 커질 수 있어요", "키가 커질 수 있니", "키를 바꿀 수 있어요", "키 조절돼요", "키 조절할 수 있어", "키 높일 수 있어요",
|
||||
"최대 키가 몇이에요", "제일 크면 몇 센티예요", "얼마나 높이 올라가요", "몸이 위아래로 움직여요", "리프트가 뭐예요", "리프트 몇 센티 올라가요",
|
||||
"키가 늘어나요", "키 늘어나나", "키 크게 할 수 있노", "키 높낮이 조절됩니까", "키 조절 되세요", "height 조절 돼요", "lift 몇 cm 올라가",
|
||||
], {"en": ["Yes, a little: my lifting column raises my upper body by up to 40 cm, from 146 cm to 186 cm.",
|
||||
"My lift takes me from 146 cm up to 186 cm, 40 cm higher."],
|
||||
"ko": ["네, 조금요. 리프트로 상체를 40cm까지 올려서 146cm에서 186cm까지 돼요.",
|
||||
"리프트로 40cm 올라가서 146cm에서 최대 186cm까지 돼요."]}),
|
||||
"charging": ([
|
||||
"how do you charge", "how do you get charged", "how do you recharge", "can you charge yourself", "do you charge by yourself",
|
||||
"where do you charge", "do you have a charging station", "do you plug in", "do you need to be plugged in",
|
||||
"what happens when your battery is low", "what do you do when your battery runs low", "do you go charge on your own",
|
||||
"충전 어떻게 해요", "충전은 어떻게 해", "충전 어떻게 하니", "충전은 어떻게 하십니까", "어떻게 충전하세요", "혼자 충전할 수 있어요",
|
||||
"스스로 충전해요", "혼자 충전하러 가", "충전기 어디 있어요", "충전소 있어요", "충전 스테이션 있어", "플러그 꽂아야 돼요", "선 꽂아서 충전해요",
|
||||
"배터리 없으면 어떻게 해요", "배터리 떨어지면 어떡해", "배터리 다 되면 어떻게 돼요", "충전 우째 하노", "충전 어떻게 해유",
|
||||
"charging 어떻게 해요", "혼자 charge 돼요", "auto charging 돼요", "자동 충전 돼요",
|
||||
], {"en": ["I charge on a charging dock, through contacts under my base, and I can drive onto it by myself.",
|
||||
"I drive onto my charging dock on my own. When I patrol and my battery falls below 5 percent I go home to charge, and I go on at 60 percent."],
|
||||
"ko": ["충전 도크에서 베이스 아래 접점으로 충전해요. 도크에는 제가 혼자 올라갈 수 있어요.",
|
||||
"충전 도크로 혼자 가서 충전해요. 순찰하다가 배터리가 5% 아래로 떨어지면 충전하러 가고, 60%가 되면 다시 일해요."]}),
|
||||
"battery_spec": ([
|
||||
"what battery do you have", "what kind of battery do you use", "what type of battery is it", "is it a lithium battery",
|
||||
"how many volts is your battery", "what's your battery voltage", "what's your battery capacity", "how big is your battery",
|
||||
"how many amp hours", "where is your battery",
|
||||
"배터리 뭐 써요", "무슨 배터리예요", "어떤 배터리야", "배터리 종류가 뭐예요", "리튬 배터리예요", "배터리 몇 볼트예요", "배터리 전압이 얼마예요",
|
||||
"배터리 용량이 얼마나 돼요", "배터리 용량 몇이야", "배터리 몇 암페어예요", "배터리 어디 있어요", "배터리 뭐 쓰노", "배터리 용량이 어떻게 되십니까",
|
||||
"battery 용량 얼마야", "battery spec 알려 줘", "배터리 capacity 몇이에요",
|
||||
], {"en": ["A 24-volt lithium-ion battery of 45 Ah in my base. It lasts about 10 hours."],
|
||||
"ko": ["베이스에 24볼트, 45Ah 리튬이온 배터리가 있어요. 약 10시간 가요."]}),
|
||||
"navigation": ([
|
||||
"how do you navigate", "how do you find your way", "how do you know where you are", "how do you know where to go",
|
||||
"how do you drive by yourself", "do you drive on your own", "are you autonomous", "can you drive autonomously",
|
||||
"how does your navigation work", "do you have a map", "do you use a map", "how accurate is your navigation",
|
||||
"do you use gps", "how do you know the way",
|
||||
"자율주행 어떻게 해요", "자율주행 돼요", "자율주행 하니", "혼자 다닐 수 있어요", "길은 어떻게 찾아요", "길 어떻게 찾아", "위치는 어떻게 알아요",
|
||||
"어디 있는지 어떻게 알아", "지도 있어요", "지도 써요", "지도를 어떻게 만들어요", "GPS 써요", "내비게이션 어떻게 해요", "자율 주행입니까",
|
||||
"길 우째 찾노", "길 어떻게 찾아유", "혼자 길 찾아가세요", "navigation 어떻게 해요", "자율주행 how", "map 있어요", "SLAM 써요",
|
||||
], {"en": ["I drive with a map of the room made with my lidar. I compare what the lidar sees with the map to know where I am, to within about 5 cm, and plan a path around people and obstacles.",
|
||||
"With a lidar map: I know where I am on it to about 5 cm, and I drive to named places on my own, around people and obstacles."],
|
||||
"ko": ["라이다로 만든 지도에서 제 위치를 약 5cm 정확도로 알고, 지도 위의 장소까지 사람과 장애물을 피해 경로를 짜서 가요.",
|
||||
"라이다 지도로 다녀요. 지도에서 제 위치를 5cm 정도로 알고, 이름 붙은 장소까지 혼자 장애물을 피해서 가요."]}),
|
||||
"obstacles": ([
|
||||
"how do you avoid obstacles", "how do you avoid people", "do you avoid obstacles", "will you bump into people",
|
||||
"do you crash into things", "what if someone is in your way", "what happens if someone stands in front of you",
|
||||
"can you avoid collisions", "are you safe to be around", "will you run me over", "do you stop for people",
|
||||
"장애물 어떻게 피해요", "장애물 피할 수 있어요", "장애물 피해", "사람 피할 수 있어", "사람 피해요", "부딪히지 않아요", "사람한테 부딪혀요",
|
||||
"앞에 사람 있으면 어떻게 돼요", "길 막히면 어떻게 해요", "충돌하면 어떻게 돼요", "안 부딪혀", "장애물 피하나", "장애물 우째 피하노",
|
||||
"obstacle 피할 수 있어요", "장애물 avoid 돼요",
|
||||
], {"en": ["My lidar, my 3D camera and five ultrasonic sensors see obstacles, and I drive around them. I drive slowly and stop for people in my way, and my bumper stops me if it's pressed.",
|
||||
"I plan my way around people and obstacles, stop when someone is in my way, and my arm stops when it bumps into something."],
|
||||
"ko": ["라이다, 3D 카메라, 초음파 센서 5개로 장애물을 보고 피해서 가요. 앞에 사람이 있으면 천천히 가거나 멈추고, 범퍼가 눌리면 바로 멈춰요.",
|
||||
"사람과 장애물을 피해서 경로를 짜고, 길에 사람이 있으면 멈춰요. 팔도 뭔가에 부딪히면 멈춰요."]}),
|
||||
"dance": ([
|
||||
"can you dance", "do you dance", "do you know how to dance", "are you able to dance", "can robots dance",
|
||||
"can you walk", "do you walk", "do you have legs", "can you run", "can you jump", "can you fly", "can you swim",
|
||||
"춤출 수 있어", "춤출 수 있어요", "춤 출 줄 알아", "춤출 줄 아니", "춤추실 수 있으세요", "춤 출 수 있습니까", "춤 잘 춰", "춤춰요",
|
||||
"걸을 수 있어", "걸을 수 있어요", "걸어 다녀요", "다리 있어요", "다리 있어", "뛸 수 있어", "점프할 수 있어요", "날 수 있어", "수영할 수 있어",
|
||||
"춤 출 줄 아나", "춤 출 수 있노", "춤 출 줄 알아유", "dance 할 수 있어", "댄스 돼요",
|
||||
"walk 할 수 있어",
|
||||
], {"en": ["No, I can't dance, walk, jump or fly: I drive on two wheels. But I can wave, and move my head when I sing.",
|
||||
"I have no legs, I drive on two wheels, so no dancing or jumping. I can wave and sing a song for you, though."],
|
||||
"ko": ["아니요, 저는 춤추거나 걷거나 뛰지 못해요. 바퀴 두 개로 다녀요. 대신 손을 흔들 수 있고, 노래할 때 고개를 움직여요.",
|
||||
"다리가 없고 바퀴로 다녀서 춤이나 점프는 못 해요. 대신 손을 흔들거나 노래를 불러 드릴 수 있어요."]}),
|
||||
"doors": ([
|
||||
"can you open doors", "can you open a door", "can you open the door by yourself", "do you open doors",
|
||||
"can you press elevator buttons", "can you push buttons", "can you go through doors",
|
||||
"문 열 수 있어", "문 열 수 있어요", "문 열 줄 알아", "문 열 수 있니", "문 여실 수 있으세요", "문 열 수 있습니까", "문 열 수 있나",
|
||||
"문 열 수 있노", "혼자 문 열어요", "엘리베이터 버튼 누를 수 있어요", "버튼 누를 수 있어", "문 open 할 수 있어",
|
||||
], {"en": ["No, I can't open doors. I drive through open ones that are at least 70 cm wide.",
|
||||
"Doors, no: I can't open them or climb stairs. An open passage 70 cm wide is fine."],
|
||||
"ko": ["아니요, 문은 못 열어요. 폭 70cm 이상으로 열려 있는 문은 지나갈 수 있어요.",
|
||||
"문 열기는 못 해요. 열려 있고 폭이 70cm 이상이면 지나갈 수 있어요."]}),
|
||||
"software": ([
|
||||
"what software do you run", "what programming language are you written in", "what are you programmed in",
|
||||
"are you written in python", "what language is your code", "what is your software", "do you use ros",
|
||||
"what operating system do you use", "who wrote your software", "what's your code written in",
|
||||
"무슨 소프트웨어로 돌아가요", "프로그래밍 언어 뭐 써요", "무슨 언어로 만들었어요", "파이썬으로 만들었어요", "코드는 뭘로 짰어요",
|
||||
"소프트웨어 뭐 써", "프로그램 뭘로 짰어", "어떤 언어로 프로그래밍했어요", "ROS 써요", "운영체제 뭐예요", "코딩 뭘로 했노",
|
||||
"software 뭐 써요", "python으로 짰어요", "코드 언어가 뭐야",
|
||||
], {"en": ["My software, which lets me talk, see, drive and pick things up, is written in Python and runs on my NVIDIA computer.",
|
||||
"Python, running on my NVIDIA Jetson Thor. Cutshion wrote it."],
|
||||
"ko": ["말하고, 보고, 다니고, 물건을 집는 제 소프트웨어는 파이썬으로 짜여 있고 엔비디아 컴퓨터에서 돌아가요.",
|
||||
"파이썬으로 짜여 있고, 엔비디아 젯슨 토르에서 돌아가요. 쿳션이 만들었어요."]}),
|
||||
"detector": ([
|
||||
"how do you detect people", "how do you detect objects", "what object detection do you use", "what detector do you use",
|
||||
"do you use yolo", "what vision model do you use", "what neural network do you use for vision", "how fast is your detection",
|
||||
"how do you find people", "how do you find objects",
|
||||
"사람을 어떻게 찾아요", "사람 어떻게 인식해", "물체 인식은 뭘로 해요", "물체 인식 뭐 써요", "객체 인식 모델이 뭐예요", "욜로 써요",
|
||||
"YOLO 써요", "비전 모델 뭐 써", "인식 모델 뭐예요", "사람 인식은 뭘로 하십니까", "물건 어떻게 찾아요", "object detection 뭐 써요",
|
||||
"vision AI 뭐 써", "사람 detect 어떻게 해",
|
||||
], {"en": ["I find people and objects with a neural network called YOLOv8 on my graphics processor; it looks at one camera picture in about 4 to 13 milliseconds."],
|
||||
"ko": ["사람과 물건은 그래픽 프로세서에서 돌아가는 욜로(YOLOv8) 신경망으로 찾아요. 카메라 사진 한 장을 약 4에서 13밀리초 만에 봐요."]}),
|
||||
"teach": ([
|
||||
"can you learn", "can you learn new tasks", "how do you learn", "how can you be taught", "can people teach you",
|
||||
"can you be programmed", "can you learn from demonstrations", "can you be controlled with vr", "do you learn by yourself",
|
||||
"can someone teach you a new skill", "can you be trained",
|
||||
"배울 수 있어", "배울 수 있어요", "새로운 거 배울 수 있니", "학습할 수 있어요", "학습 돼요", "어떻게 배워요", "가르칠 수 있어요",
|
||||
"가르치면 배워", "새 작업 가르칠 수 있습니까", "VR로 조종돼요", "원격 조종 돼요", "티칭 돼요", "배울 수 있나", "배울 수 있노",
|
||||
"learning 돼요", "새 skill 배울 수 있어", "teaching 가능해요",
|
||||
], {"en": ["People can teach me new tasks by moving my arm by hand, by writing programs, or by remote control with a VR headset, and I can learn skills from demonstrations."],
|
||||
"ko": ["제 팔을 손으로 움직여서 가르치거나, 프로그램을 짜거나, VR 헤드셋으로 원격 조종해서 새 일을 가르칠 수 있어요. 시범을 보고 기술을 배울 수도 있어요."]}),
|
||||
"touch": ([
|
||||
"is it ok to touch you", "is it safe to touch you", "can people touch you", "may we touch you", "can kids touch you",
|
||||
"can you be pushed", "is it okay to push you", "are you dangerous", "is it safe near you", "are you safe for kids",
|
||||
"만져도 돼", "만져도 돼요", "만져도 되니", "만져도 됩니까", "만져도 되나요", "만져 봐도 되세요", "만져도 괜찮아요", "만지면 안 돼요",
|
||||
"밀어도 돼요", "밀어도 되나", "애들이 만져도 돼요", "아이들 옆에 있어도 안전해요", "만져도 되나", "만지도 되나",
|
||||
"만져도 되노", "만져도 돼유", "touch 해도 돼요", "만져도 OK예요",
|
||||
], {"en": ["You may touch me, but please keep your hands away from my gripper fingers when they close, and please don't push me: I'm heavy.",
|
||||
"Yes, gently. Keep your hands away from my gripper fingers when they close, and don't push my base while I'm switched on."],
|
||||
"ko": ["만지셔도 돼요. 다만 그리퍼 손가락이 닫힐 때는 손을 가까이 대지 마시고, 저는 무거우니까 밀지 말아 주세요.",
|
||||
"살살 만지셔도 돼요. 그리퍼 손가락이 닫힐 때는 손을 떼 주시고, 켜져 있을 때는 베이스를 밀지 말아 주세요."]}),
|
||||
"accuracy": ([
|
||||
"how accurate is your position", "how precise is your map position", "how accurate is your arm", "what's your repeatability",
|
||||
"how precise are you", "how accurate are you", "what's your precision", "how exact is your arm",
|
||||
"몇 센티 오차예요", "오차가 몇 센티야", "위치 오차가 얼마예요", "팔 정확도가 얼마예요", "반복 정밀도가 얼마예요", "정밀도가 어떻게 돼요",
|
||||
"얼마나 정확해요", "얼마나 정밀해", "정확도가 몇이에요", "오차 얼마나 나요", "오차가 어떻게 됩니까", "정밀도 몇이고", "precision 얼마예요",
|
||||
"accuracy 몇이야", "repeatability 얼마예요",
|
||||
], {"en": ["My arm repeats a position to 0.1 mm, and on my map I know where I am to within about 5 cm."],
|
||||
"ko": ["팔의 반복 정밀도는 0.1mm이고, 지도에서 제 위치는 약 5cm 정확도로 알아요."]}),
|
||||
"pick_what": ([
|
||||
"what can you pick up", "what objects can you pick up", "what can you grab", "what can you grip", "what objects do you know",
|
||||
"which objects can you pick", "can you pick from the floor", "can you pick up from the floor", "can you reach the floor",
|
||||
"뭐 집을 수 있어", "뭐 집을 수 있어요", "뭘 집을 수 있니", "무엇을 집을 수 있습니까", "어떤 걸 집을 수 있어요", "뭐 잡을 수 있어",
|
||||
"병도 집을 수 있어요", "사과 집을 수 있어", "과일 집을 수 있어요", "바닥에 있는 거 주울 수 있어요", "바닥에서 주울 수 있어",
|
||||
"어떤 거 집을 수 있으세요", "뭐 집을 수 있노", "뭐 집을 수 있나", "뭐 pick 할 수 있어", "pick up 뭐 돼요",
|
||||
], {"en": ["I can pick up cups, mugs and glasses, bottles, apples, oranges and bananas, from a table or a box near table height, not from the floor. So far I've picked up cups live.",
|
||||
"Cups, glasses, bottles and fruit like apples, oranges and bananas, from about table height. Not from the floor: my arm doesn't reach that low."],
|
||||
"ko": ["컵, 머그, 유리잔, 병, 사과, 오렌지, 바나나를 탁자 높이에서 집을 수 있어요. 바닥에 있는 건 못 집어요. 실제로 집어 본 건 컵이에요.",
|
||||
"탁자 높이에 있는 컵, 유리잔, 병, 그리고 사과, 오렌지, 바나나 같은 과일을 집어요. 바닥은 팔이 안 닿아서 못 집어요."]}),
|
||||
"operator": ([
|
||||
"who operates you", "who's in charge of you", "who takes care of you", "who looks after you", "who controls you",
|
||||
"who is responsible for you", "who runs you here", "is there a staff member",
|
||||
"누가 관리해요", "관리자가 누구예요", "누가 운영해요", "누가 조종해요", "담당자가 누구예요",
|
||||
"책임자가 누구야", "관리는 누가 하십니까", "누가 관리하노", "manager 누구예요", "담당 staff 누구예요",
|
||||
], {"en": ["Cutshion Company operates me here. If you need help with something I can't do, please ask a staff member."],
|
||||
"ko": ["여기서는 쿳션이 저를 운영해요. 제가 못 하는 일은 직원에게 물어봐 주세요."]}),
|
||||
}
|
||||
|
||||
# the same meanings at every Korean speech level (반말, 해요체, 하십시오체, honorific, dialect)
|
||||
for _kind, _stems, _ends in [
|
||||
("lidar", ["라이다 ", "레이저 센서 "], [s + e for s in ["있"] for e in HAVE]),
|
||||
("stairs", ["계단 올라갈 ", "계단 오를 "], ["수 " + s + e for s in ["있"] for e in CAN]),
|
||||
("dance", ["춤출 ", "걸을 "], ["수 " + s + e for s in ["있"] for e in CAN]),
|
||||
("doors", ["문 열 "], ["수 " + s + e for s in ["있"] for e in CAN]),
|
||||
("teach", ["새로운 일 배울 ", "배울 "], ["수 " + s + e for s in ["있"] for e in CAN]),
|
||||
("gripper", ["그리퍼 ", "그리퍼는 "], ["뭐" + e for e in WHAT]),
|
||||
("sensors", ["센서는 ", "무슨 센서 "], ["있" + e for e in HAVE]),
|
||||
]:
|
||||
QUICK_KINDS[_kind][0].extend(_ko(_stems, _ends))
|
||||
|
||||
QUICK = {
|
||||
"no": [
|
||||
# commands that sound like these questions: the rules
|
||||
"turn your head 180 degrees", "turn your head all the way", "tilt your head up", "turn your waist", "rotate your waist left",
|
||||
"고개 180도 돌려", "고개 끝까지 돌려", "허리 돌려", "허리 왼쪽으로 돌려", "머리 위로 들어", "grow taller now", "get taller", "lift up",
|
||||
"키 커져 봐", "키 높여", "리프트 올려", "go charge", "go to your charger", "go charge yourself", "charge now", "충전하러 가",
|
||||
"충전하러 가 줘", "충전기로 가", "dance for me", "dance", "do a dance", "춤 춰", "춤춰 봐", "춤 좀 춰 줘", "open the door",
|
||||
"문 열어", "문 좀 열어 줘", "pick up the cup", "pick up the bottle", "pick up that apple", "컵 집어", "병 집어 줘", "사과 집어 줘",
|
||||
"climb the stairs", "go upstairs", "계단 올라가 봐", "2층으로 가", "reach out", "reach out your arm", "팔 뻗어", "팔 내밀어",
|
||||
"show me your gripper", "open your gripper", "close your gripper", "그리퍼 열어", "그리퍼 닫아", "손 펴", "손 쥐어",
|
||||
"avoid the chair", "go around the table", "의자 피해서 가", "turn on the lidar", "라이다 켜", "teach me something", "나 좀 가르쳐 줘",
|
||||
"touch my hand", "내 손 만져", "push the cart", "밀어", "navigate to p1", "p1으로 가", "find the way to the door", "길 안내해 줘",
|
||||
# other things' facts
|
||||
"how wide is the door", "how wide is this room", "how big is this room", "문 폭이 얼마예요", "이 방 크기가 얼마예요",
|
||||
"how far can a car go", "how many stairs are there", "계단 몇 개야", "where are the stairs", "계단 어디 있어요", "where's the elevator",
|
||||
"엘리베이터 어디예요", "where's the door", "문 어디예요", "how heavy is the cup", "컵 무게가 얼마예요", "what's in the cup", "컵에 뭐 있어",
|
||||
"how accurate is the weather forecast", "일기예보 정확해요", "who is the staff here", "how do i charge my phone", "핸드폰 충전 어디서 해요",
|
||||
"where can i charge my phone", "do you have a phone charger", "충전기 있어요 핸드폰", "what sensors does a car have",
|
||||
"what language do people speak here", "what software does cutshion make", "쿳션은 무슨 소프트웨어 만들어요",
|
||||
"can my kid dance with you", "do you like dancing", "춤 좋아해", "do you like stairs", "what's your favorite dance",
|
||||
"can the ice cream robot dance", "아이스크림 로봇 춤춰요", "barista robot arm 몇 축이에요", "바리스타 로봇 팔 뭐 써요",
|
||||
"how fast is the barista robot arm", "does the barista robot have a lidar", "does the ice cream robot have sensors", "does the drawing robot have a camera", "바리스타 로봇도 라이다 있어요", "아이스크림 로봇 센서 뭐 써요", "does your car have a lidar", "does a tesla have lidar", "jaka arm payload", "자카 로봇 가반하중", "what's the payload of the zu 7",
|
||||
# the battery now, the charging time: assistant/battery.py
|
||||
"are you charging", "are you charging now", "충전 중이야", "충전 중이에요", "how long to charge", "충전 얼마나 걸려",
|
||||
"how much battery is left", "배터리 몇 퍼센트야",
|
||||
],
|
||||
}
|
||||
|
||||
# The same questions said by everyone: each kind's nouns and abilities with every Korean speech level and the usual
|
||||
# English frames, with or without a subject ("너", "루미", "이 로봇", "this robot").
|
||||
KO_WHO = ["", "너 ", "루미 ", "이 로봇 ", "로봇 ", "니 "]
|
||||
HOW = ["어떻게 돼", "어떻게 돼요", "어떻게 되니", "어떻게 되나요", "어떻게 되세요", "어떻게 되십니까", "어떻게 됩니까", "어떻게 되노",
|
||||
"어떻게 되유", "어떻게 됨", "우째 되노", "얼마나 돼", "얼마나 돼요", "얼마나 되니", "얼마나 되세요", "몇이야", "몇이에요", "몇이니",
|
||||
"몇입니까", "몇이고", "몇이여", "몇이세요"]
|
||||
USE = ["뭐 써", "뭐 써요", "뭐 쓰니", "뭐 쓰세요", "뭐 쓰십니까", "뭐 씁니까", "뭐 쓰노", "뭐 써유", "뭐야", "뭐예요", "뭐니", "뭡니까",
|
||||
"뭐고", "뭐여", "뭔가요", "무슨 거야", "어떤 거예요", "어떤 걸 쓰세요"]
|
||||
ABLE = ["수 있어", "수 있어요", "수 있니", "수 있나요", "수 있으세요", "수 있으십니까", "수 있습니까", "수 있나", "수 있노", "수 있어유",
|
||||
"수 있음", "줄 알아", "줄 알아요", "줄 아니", "줄 아세요", "줄 압니까", "줄 아나", "줄 아노", "수 있겠어", "수 있겠어요"]
|
||||
EN_NOUN = ["what's your {}", "what is your {}", "tell me your {}", "what {} do you have", "what's the robot's {}", "your {}?",
|
||||
"what is lumi's {}", "what's this robot's {}", "{} of this robot", "what {} does this robot have"]
|
||||
EN_ABLE = ["can you {}", "are you able to {}", "can lumi {}", "is this robot able to {}", "do you know how to {}", "can this robot {}",
|
||||
"is lumi able to {}", "you can {}?"]
|
||||
EN_HAVE = ["do you have {}", "have you got {}", "does this robot have {}", "does lumi have {}", "is there {} on you", "any {}?"]
|
||||
|
||||
NOUNS = { # kind: ([Korean nouns with 은/는/이/가 or none], [English nouns])
|
||||
"size": (["크기가 ", "크기 ", "사이즈가 ", "사이즈 ", "폭이 ", "폭 ", "너비가 ", "치수가 ", "가로세로 크기가 "],
|
||||
["size", "dimensions", "width", "footprint", "measurements"]),
|
||||
"arm": (["팔 길이가 ", "팔 길이 ", "팔 리치가 ", "팔 닿는 거리가 "], ["arm model", "reach", "robot arm"]),
|
||||
"payload": (["가반하중이 ", "가반하중 ", "최대 하중이 ", "하중이 ", "팔 하중이 "], ["payload", "maximum payload", "payload capacity"]),
|
||||
"battery_spec": (["배터리 용량이 ", "배터리 전압이 ", "배터리 사양이 ", "배터리 스펙이 "],
|
||||
["battery type", "battery capacity", "battery voltage", "battery spec"]),
|
||||
"accuracy": (["정밀도가 ", "정확도가 ", "오차가 ", "반복 정밀도가 ", "위치 정확도가 "], ["precision", "accuracy", "repeatability"]),
|
||||
"turn_range": (["고개 회전 범위가 ", "머리 회전 범위가 ", "허리 회전 범위가 ", "고개 돌아가는 각도가 ", "허리 돌아가는 각도가 "],
|
||||
["head rotation range", "waist rotation range", "head turning range"]),
|
||||
}
|
||||
TOOLS = { # kind: ([Korean nouns], [English nouns]) asked "뭐 써?"
|
||||
"arm": (["팔은 ", "팔 ", "로봇 팔은 ", "로봇 팔 "], ["arm", "robot arm"]),
|
||||
"gripper": (["그리퍼는 ", "그리퍼 ", "집게는 ", "집게 ", "손은 ", "로봇 손은 "], ["gripper", "robot hand", "end effector"]),
|
||||
"sensors": (["센서는 ", "센서 ", "무슨 센서 "], ["sensors"]),
|
||||
"lidar": (["라이다는 ", "라이다 ", "레이저 스캐너는 "], ["lidar", "laser scanner"]),
|
||||
"battery_spec": (["배터리는 ", "배터리 종류는 "], ["battery"]),
|
||||
"software": (["소프트웨어는 ", "소프트웨어 ", "프로그래밍 언어는 ", "프로그래밍 언어 ", "코드는 ", "프로그램은 "],
|
||||
["software", "programming language", "code language"]),
|
||||
"detector": (["물체 인식은 ", "물체 인식 모델은 ", "사람 인식은 ", "비전 모델은 ", "객체 인식 모델 ", "인식 모델 "],
|
||||
["object detector", "vision model", "detection model", "person detector"]),
|
||||
}
|
||||
ABILITIES = { # kind: ([Korean verbs before 수 / 줄], [English verbs])
|
||||
"stairs": (["계단 올라갈 ", "계단 오를 ", "계단 갈 ", "턱 넘을 ", "경사로 올라갈 ", "오르막 갈 "],
|
||||
["climb stairs", "go up stairs", "take the stairs", "climb steps", "go up a ramp", "go over a step"]),
|
||||
"dance": (["춤출 ", "춤 출 ", "걸을 ", "걸어 다닐 ", "뛸 ", "점프할 ", "날 "], ["dance", "walk", "run", "jump", "fly"]),
|
||||
"doors": (["문 열 ", "문을 열 ", "혼자 문 열 "], ["open doors", "open a door", "open the door by yourself"]),
|
||||
"teach": (["배울 ", "새로운 걸 배울 ", "새 일 배울 ", "학습할 "], ["learn", "learn new tasks", "learn new skills", "be taught"]),
|
||||
"charging": (["혼자 충전할 ", "스스로 충전할 ", "충전하러 혼자 갈 "], ["charge yourself", "charge by yourself", "dock by yourself"]),
|
||||
"navigation": (["혼자 다닐 ", "혼자 길 찾을 ", "자율주행 할 ", "스스로 운전할 "],
|
||||
["drive by yourself", "drive on your own", "find your way", "drive autonomously", "navigate on your own"]),
|
||||
"obstacles": (["장애물 피할 ", "장애물을 피할 ", "사람 피할 ", "사람을 피해 갈 "], ["avoid obstacles", "avoid people", "avoid collisions"]),
|
||||
"grow": (["키 키울 ", "키 늘릴 ", "키를 높일 ", "키 조절할 "], ["grow taller", "get taller", "change your height", "raise yourself"]),
|
||||
"pick_what": (["바닥에서 주울 ", "바닥에 있는 걸 주울 "], ["pick things from the floor", "reach the floor", "pick from the floor"]),
|
||||
}
|
||||
HAVES = { # kind: ([Korean nouns before 있-], [English "a ..."])
|
||||
"lidar": (["라이다 ", "라이다가 ", "레이저 스캐너 ", "레이저 센서 "], ["a lidar", "lidar", "a laser scanner"]),
|
||||
"sensors": (["초음파 센서 ", "범퍼 ", "관성 센서 ", "센서 "], ["ultrasonic sensors", "a bumper", "an imu", "sensors"]),
|
||||
"gripper": (["손가락 ", "손 ", "그리퍼 ", "집게 "], ["fingers", "a hand", "a gripper"]),
|
||||
"navigation": (["지도 ", "지도가 ", "내비게이션 "], ["a map", "navigation", "gps"]),
|
||||
"charging": (["충전기 ", "충전 스테이션 ", "충전 도크 "], ["a charging station", "a charging dock", "a charger"]),
|
||||
"dance": (["다리 ", "다리가 "], ["legs"]),
|
||||
}
|
||||
for _kind, (_ko_n, _en_n) in NOUNS.items():
|
||||
QUICK_KINDS[_kind][0].extend(w + n + e for w in ["", "너 ", "이 로봇 "] for n in _ko_n for e in HOW)
|
||||
QUICK_KINDS[_kind][0].extend(f.format(n) for f in EN_NOUN for n in _en_n)
|
||||
for _kind, (_ko_n, _en_n) in TOOLS.items():
|
||||
QUICK_KINDS[_kind][0].extend(w + n + e for w in KO_WHO[:4] for n in _ko_n for e in USE)
|
||||
QUICK_KINDS[_kind][0].extend(f.format(n) for f in ["what {} do you use", "what {} do you have", "which {} do you use", "what {} is that",
|
||||
"what kind of {} do you have", "what's your {}", "what {} does this robot use"]
|
||||
for n in _en_n)
|
||||
for _kind, (_ko_v, _en_v) in ABILITIES.items():
|
||||
QUICK_KINDS[_kind][0].extend(w + v + e for w in KO_WHO[:4] for v in _ko_v for e in ABLE)
|
||||
QUICK_KINDS[_kind][0].extend(f.format(v) for f in EN_ABLE for v in _en_v)
|
||||
for _kind, (_ko_n, _en_n) in HAVES.items():
|
||||
QUICK_KINDS[_kind][0].extend(w + n + e for w in KO_WHO[:4] for n in _ko_n for e in ["있" + h for h in HAVE] + ["달려 있어", "달려 있어요", "달려 있나요"])
|
||||
QUICK_KINDS[_kind][0].extend(f.format(n) for f in EN_HAVE for n in _en_n)
|
||||
QUICK_KINDS["dance"][0].append("춤 출 수 있어") # quick_answers.NO lists it for the LLM; it is this kind's now
|
||||
QUICK_KINDS["arm"][0].extend(["팔 길이가 얼마야", "how long is your arm"])
|
||||
@@ -221,7 +221,7 @@ QUICK = {
|
||||
"what's the name of this building", "what is the name of the ceo", "what's the name of the company",
|
||||
"아이스크림 로봇 무게가 얼마예요", "아이스크림 로봇 얼마나 빨라요", "캔디볼 로봇 몇 초 걸려요", "에펠탑 높이가 얼마야",
|
||||
"손흥민 키가 몇이야", "손흥민 몇 살이야", "아이폰 누가 만들었어", "대표 나이가 몇이에요", "대표님 이름이 뭐예요",
|
||||
"이 건물 이름이 뭐예요", "이 행사 이름 뭐야", "회사 이름이 뭐예요", "그리퍼 누가 만들었어요", "카메라 누가 만들었어",
|
||||
"이 건물 이름이 뭐예요", "이 행사 이름 뭐야", "회사 이름이 뭐예요", "카메라 누가 만들었어",
|
||||
# the visitor about themselves
|
||||
"what's my name", "do you know my name", "guess my name", "how old do you think i am", "guess how old i am",
|
||||
"how tall do you think i am", "내 이름 뭐게", "내 이름 알아", "내가 몇 살 같아", "나 몇 살로 보여", "제 이름 아세요",
|
||||
@@ -241,23 +241,17 @@ QUICK = {
|
||||
# a request and a question together: the rules or the LLM
|
||||
"컵 주고 이름 알려 줘", "이리 오고 이름 말해 줘", "손 흔들고 이름 알려 주세요", "give me the cup and tell me your name",
|
||||
"come here and tell me how old you are", "따라오고 나이 알려 줘",
|
||||
# Cutshion and its people, not Lumi: the company notes
|
||||
"who is cutshion's ceo", "when was cutshion founded", "where is cutshion", "what does cutshion make", "cutshion phone number",
|
||||
"how do i contact cutshion", "쿳션 대표가 누구야", "쿳션 언제 생겼어요", "쿳션 어디 있어요", "쿳션 연락처 알려 줘",
|
||||
"how old is cutshion", "쿳션 몇 년 됐어요", "is cutshion korean", "쿳션은 한국 회사예요",
|
||||
"company make which robot", "what robots does the company make", "which robots does cutshion make",
|
||||
"what does your company make", "회사는 어떤 로봇 만들어", "회사에서 무슨 로봇 만들어요", "쿳션은 뭐 만들어요",
|
||||
# the birthday is not known (the age is)
|
||||
"when is your birthday", "when's your birthday", "what's your birthday", "what day were you born", "생일이 언제야",
|
||||
"생일이 언제예요", "생일 언제야", "너 birthday 언제야", "생일이 며칠이에요",
|
||||
# a greeting with a question after it: the question decides
|
||||
"안녕 루미 상 받은 거 있어", "안녕 루미 쿳션이 뭐야", "안녕하세요 화장실 어디예요", "안녕 루미 날씨 어때",
|
||||
"안녕 루미 상 받은 거 있어", "안녕하세요 화장실 어디예요", "안녕 루미 날씨 어때",
|
||||
"안녕 오늘 뭐 해",
|
||||
# not known: the battery's lifetime in years, being another company's robot
|
||||
"battery 수명 몇 년이에요", "배터리 수명이 몇 년이에요", "배터리 몇 년 써요", "배터리 교체 주기가 어떻게 돼요",
|
||||
"how many years does the battery last", "when does the battery need replacing", "너 자카 로봇이야", "자카 거야",
|
||||
"jaka에서 만들었어", "are you a jaka robot", "are you made by jaka", "너 중국 회사 로봇 맞지", "hi lumi what is cutshion", "hello where is the toilet", "hi what's the weather",
|
||||
"hey lumi did cutshion win any awards", "hello can you help me", "안녕하세요 질문 있어요", "hi i have a question",
|
||||
"jaka에서 만들었어", "are you a jaka robot", "are you made by jaka", "너 중국 회사 로봇 맞지", "hello where is the toilet", "hi what's the weather",
|
||||
"hello can you help me", "안녕하세요 질문 있어요", "hi i have a question",
|
||||
],
|
||||
}
|
||||
|
||||
@@ -340,7 +334,7 @@ _MORE = {
|
||||
"몇 살인데", "나이 좀 알려 줘", "너 나이 몇", "how old 너는",
|
||||
],
|
||||
"maker": [
|
||||
"who made you robot", "who built you robot", "who's the maker of this robot", "which company makes you",
|
||||
"who made you robot", "who built you robot", "what company built you", "what company made you robot", "which firm built you", "너 어느 회사 거니", "너 어느 회사 로봇이야", "너 어디 회사 로봇이에요", "어느 회사 로봇이십니까", "니 어느 회사 기고", "who's the maker of this robot", "which company makes you",
|
||||
"어디서 만든 로봇입니까", "어디서 만든 로봇이에요", "어디서 만든 로봇이야", "이거 어디 회사 기고", "어데 회사 로봇이고",
|
||||
"이거 누가 만들었노", "이 로봇 누가 만든 거예요", "어느 회사가 만들었어", "어디 거야 이 로봇", "who made 이 로봇",
|
||||
],
|
||||
|
||||
+3
-1
@@ -125,7 +125,9 @@ def weather(place=DEFAULT_PLACE):
|
||||
WEEKDAYS = {"monday": 0, "tuesday": 1, "wednesday": 2, "thursday": 3, "friday": 4, "saturday": 5, "sunday": 6,
|
||||
"월": 0, "화": 1, "수": 2, "목": 3, "금": 4, "토": 5, "일": 6}
|
||||
NUMBER_WORDS = {"one": 1, "two": 2, "three": 3, "four": 4, "five": 5, "six": 6, "seven": 7, "이틀": 2, "사흘": 3, "나흘": 4}
|
||||
DAY_AFTER = re.compile(r"\bthe (?:day after|next day|following day)\b(?! tomorrow)|그 ?다음 ?날|다음 ?날|그 ?담 ?날", re.I)
|
||||
DAY_AFTER = re.compile(r"\bthe (?:day after|next day|following day)\b(?! tomorrow)|그 ?다음 ?날|다음 ?날|그 ?담 ?날|"
|
||||
r"^\W*(?:and then|then|after that|and after that|그 ?다음(?:은|에는?)?|그 ?담(?:엔|은)?|그리고(?:는)?)\W*(?:요)?\W*$", re.I)
|
||||
# a bare "and then?" / "그 다음은?" after a day's weather: the day after it
|
||||
DAY_BEFORE = re.compile(r"\bthe day before\b(?! yesterday)|그 ?전 ?날", re.I)
|
||||
FIXED_DAY = re.compile(r"\bday after tomorrow\b|\bday before yesterday\b|내일 ?모레|글피|그저께|그제|모레|"
|
||||
r"(?<![a-z])(?:today|tonight)(?![a-z])|\b(?:this |in the )?(?:morning|afternoon|evening)(?![a-z])|"
|
||||
|
||||
+1
-1
@@ -77,7 +77,7 @@ NOT_ASKED = re.compile(r"\b(?:don'?t|do not|never)\s+(?:\w+\s+)?(?:sing|play)\b|
|
||||
r"when (?:the|they|i|we|guests?|everyone|people)|at the end)\b|"
|
||||
r"\bif (?:the|they|i|we|you|he|she|guests?|kids?|someone|people|it)\b|"
|
||||
r"\b(?:never ?mind|forget it|cancel that|actually,? no|on second thought)\b|아니다\s*(?:됐|그만|말자)|됐(?:어|다|습니다)\W*$|"
|
||||
r"(?:끝나|오|되|돌아오|도착하|시작하)면\s|(?:부르는|하는|불렀던|부른) ?거 ?(?:봤|들었)|"
|
||||
r"(?:끝나|오|되|돌아오|도착하|시작하)면\s|(?:제가|내가|우리가|저희가|애들이|아이들이|손님이|사람들이)\s+(?:\S+\s+){0,2}\S*[^안않]면\s|(?:부르는|하는|불렀던|부른) ?거 ?(?:봤|들었)|"
|
||||
r"(?:부르|하|틀|불르)지\s*(?:마|말)|노래방|나중에|이따가?|있다가|끝나고|면\s*그때|(?:내가|제가)\s*(?:노래\s*)?"
|
||||
r"(?:불러|부를|부르|할)|"
|
||||
r"^\W*(?:\w+\W+){0,3}?(?:why|how come|how (?:do|does|did|can|could) you)\b|왜|어째서|어떻게", re.I)
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
"""Print the wrong / motion rows of a saved blind run: python tests/blind_wrong.py logs/blind_r6_train_a5n3.json [set] [verdicts]"""
|
||||
import collections
|
||||
import json
|
||||
import sys
|
||||
|
||||
d = json.load(open(sys.argv[1]))
|
||||
sets = [sys.argv[2]] if len(sys.argv) > 2 and sys.argv[2] != "-" else list(d)
|
||||
want = set((sys.argv[3] if len(sys.argv) > 3 else "wrong,motion").split(","))
|
||||
for s in sets:
|
||||
rows = [r for r in d[s]["rows"] if r["verdict"] in want]
|
||||
print(f"== {s}: {len(rows)}", collections.Counter(r["verdict"] for r in rows))
|
||||
for r in rows:
|
||||
print(f"{r['verdict']:6} {r['show'][:260]}")
|
||||
@@ -0,0 +1,148 @@
|
||||
"""Dev eval of quick answers on wordings written apart from the bank. python qa_eval.py"""
|
||||
import sys
|
||||
sys.path.insert(0, __file__.rsplit("/tests/", 1)[0])
|
||||
from assistant import quick_answers as qa
|
||||
|
||||
POS = {
|
||||
"name": ["Hey, what is your name?", "Could you tell me your name?", "What name do you go by?", "Robot, what's ur name",
|
||||
"and your name is?", "Do you have a name, robot?", "너는 이름이 뭐니?", "이름 좀 알려 주세요", "이름이 뭐라고요?",
|
||||
"니 이름이 뭐고", "이름이 어떻게 되십니까?", "자네 이름은?", "얘 이름 뭐야?", "what's your 이름?", "네 이름은 뭐야",
|
||||
"What do I call you?", "your name please", "이름 뭐야?", "님 이름이 뭐예요", "로봇아 이름이 뭐야"],
|
||||
"age": ["How old are you, Lumi?", "What age are you?", "How many years have you been around?", "When were you created?",
|
||||
"Lumi, how old r you?", "너 나이가 어떻게 돼?", "몇 살이니?", "나이 몇이에요?", "올해 몇 살이야?", "몇 살이십니까?",
|
||||
"언제 만들어졌니?", "태어난 지 얼마나 됐어요?", "몇 년 됐어요 너?", "니 나이 몇이고", "how old is the robot?", "your age is?",
|
||||
"만들어진 지 몇 년 됐어요?", "너 몇살이야"],
|
||||
"maker": ["Who made this robot?", "Who's your developer?", "Which company developed you?", "Who manufactured you?",
|
||||
"what company built you?", "Who designed and built you?", "Where were you made?", "who is your manufacturer",
|
||||
"누가 너를 만들었니?", "누가 만들었습니까?", "만든 회사가 어디예요?", "어디서 개발했어요?", "제조사가 어디야?",
|
||||
"너 어느 회사 거야?", "누가 개발했니", "어디 회사 거예요?", "개발사가 어디예요", "who made u", "너 누가 만들었어?",
|
||||
"어디 제품이에요?"],
|
||||
"who": ["What are you?", "Tell me about you.", "Please introduce yourself.", "Who exactly are you?", "So who are you?",
|
||||
"What kind of robot is this?", "What is this thing?", "Can you introduce yourself?", "너는 누구니?", "당신은 누구십니까?",
|
||||
"자기소개 부탁해요", "너 정체가 뭐야?", "넌 뭐니?", "소개 좀 해 봐", "어떤 로봇이야?", "이 로봇 뭐야?", "자기소개 해 봐",
|
||||
"who are u", "넌 뭐 하는 로봇이야?", "what do you do?"],
|
||||
"height": ["How tall are you, Lumi?", "What is your height in cm?", "How tall is this thing?", "how many centimeters tall are you",
|
||||
"너 키가 얼마야?", "키 몇 센티야?", "키가 어떻게 돼요?", "키가 몇 센티미터예요?", "신장이 얼마예요?", "키 얼마나 돼?",
|
||||
"니 키 몇이고", "how tall r you", "키가 몇이니?"],
|
||||
"weight": ["How heavy are you, Lumi?", "What do you weigh?", "How many kilos are you?", "how many kg do you weigh",
|
||||
"너 무게가 얼마야?", "몸무게 몇이에요?", "몇 킬로그램이에요?", "무게 얼마나 나가요?", "너 무거워?", "체중이 얼마예요?"],
|
||||
"battery_life": ["How long does your battery last on a charge?", "How many hours can you run?", "How long can you operate?",
|
||||
"What's your battery life like?", "How long until you need charging?", "배터리 몇 시간 쓸 수 있어?",
|
||||
"한 번 충전으로 얼마나 가요?", "배터리 지속 시간이 얼마예요?", "충전하면 몇 시간 가?", "몇 시간 동안 움직일 수 있어요?",
|
||||
"배터리가 얼마나 오래 가요?", "배터리 몇 시간 버텨?"],
|
||||
"languages": ["Which languages can you speak?", "Do you speak English?", "Can you talk in Korean?", "Can you speak Japanese?",
|
||||
"Do you know Chinese?", "What languages do you know?", "Can you understand Spanish?", "영어 할 수 있어요?",
|
||||
"한국어 알아?", "일본어 할 줄 아세요?", "몇 개 언어 할 수 있어?", "무슨 말 할 줄 알아?", "중국어 돼?", "영어 돼요?",
|
||||
"speak english?", "can you speak 한국어?"],
|
||||
"chatgpt": ["Are you ChatGPT?", "Is this ChatGPT inside?", "Do you run on GPT?", "Are you based on ChatGPT?",
|
||||
"너 지피티야?", "챗GPT예요?", "챗지피티 기반이야?", "are you like chatgpt?", "Do you use OpenAI?"],
|
||||
"model": ["What AI model are you using?", "Which LLM do you use?", "What language model runs you?", "What is your AI?",
|
||||
"어떤 AI 모델 써?", "무슨 언어 모델이야?", "인공지능 모델이 뭐예요?", "너 무슨 AI야?", "what ai model 써?", "which ai are you based on"],
|
||||
"robot": ["Are you a real robot?", "Are you alive?", "Are you a human?", "Is someone inside you?", "Do you have feelings?",
|
||||
"Can you feel emotions?", "Are you human or robot?", "너 사람이야?", "너 진짜 로봇이야?", "살아 있어요?", "감정을 느껴?",
|
||||
"누가 조종하는 거야?", "사람이 안에 있어?", "너 기계야?", "are you an AI?", "너 AI야?"],
|
||||
"speed": ["How fast can you drive?", "What's your top speed?", "How quickly can you move?", "What is your maximum speed?",
|
||||
"너 얼마나 빨리 달려?", "속도가 얼마나 돼요?", "최대 속도가 얼마예요?", "얼마나 빨라?", "how fast r u"],
|
||||
"hello": ["Hello there!", "Hi Lumi!", "Hey Lumi", "Good morning, Lumi", "Hello, robot", "Hey hey", "안녕 루미",
|
||||
"안녕하세요 루미", "하이 루미야", "안녕?", "방가방가", "반갑습니다", "헬로 루미", "hello 루미", "좋은 아침", "Greetings"],
|
||||
"how_are_you": ["How are you?", "How are you doing today?", "How's your day going?", "Are you doing well?", "You okay?",
|
||||
"잘 지냈어?", "오늘 어때요?", "잘 지내요?", "기분이 어때?", "컨디션 어때?", "how are you 루미", "how's it going, lumi"],
|
||||
"name_meaning": ["What does Lumi mean?", "Why is your name Lumi?", "Where does your name come from?", "루미 무슨 뜻이에요?",
|
||||
"왜 루미라고 불러?", "이름 뜻이 뭐야?"],
|
||||
}
|
||||
NEG = ["can you see me?", "what am I wearing?", "how old do I look?", "what colour is my bag?", "come here please",
|
||||
"follow me", "wave at me", "sing something", "go to the stage", "tell me a joke", "what can you do?",
|
||||
"how much can you lift?", "how long does it take to charge?", "how much battery is left?",
|
||||
"how many employees work there?", "what's the weather today?",
|
||||
"thanks", "thank you so much", "goodbye", "okay", "why?", "really?", "and you?", "how old?", "what's my name?",
|
||||
"how tall am I?", "who made your arm?", "who made the barista robot?", "how much do you cost?", "얼마예요?",
|
||||
"나 몇 살로 보여?", "내 이름 뭐게?", "이리 와", "따라와", "노래해 줘", "날씨 어때?", "고마워", "잘 가",
|
||||
"왜?", "진짜?", "넌?", "충전 얼마나 걸려?", "배터리 몇 퍼센트야?",
|
||||
"뭐 할 수 있어?", "몇 킬로까지 들어?", "how tall is the eiffel tower?", "how old is taylor swift?", "who made the iphone?",
|
||||
"what's the name of this event?", "what is jaka?", "who made jaka robots?",
|
||||
"what is your favorite color?", "do you like music?", "where am I?", "where are we?",
|
||||
"what is your battery level?", "are you tired?", "are you hungry?", "what languages does cutshion use?",
|
||||
"how tall is your arm?", "what's my age?", "이 행사 이름 뭐야?", "여기 어디야?",
|
||||
"how far can you see?", "do you know my name?", "where's the toilet?", "what do you think about AI?"]
|
||||
|
||||
POS.update({
|
||||
"size": ["How wide is Lumi?", "What are your dimensions, robot?", "너 폭이 몇이야?", "크기가 어떻게 되십니까?", "가로세로 몇 센티예요?",
|
||||
"how much space do you take up?", "로봇 사이즈 좀 알려 주세요", "너비가 몇이고?"],
|
||||
"payload": ["What is your payload capacity?", "Max payload of the arm?", "가반하중은 얼마나 되나요?", "최대 몇 킬로까지 집으세요?",
|
||||
"how heavy a thing can your gripper pick?", "가반하중 몇 키로고?"],
|
||||
"arm": ["What sort of arm is that?", "Which robot arm do you use?", "팔은 무슨 모델이에요?", "팔 길이가 몇 센티야?", "how far is your reach?",
|
||||
"팔이 어디까지 닿습니까?", "팔 하나밖에 없어?"],
|
||||
"gripper": ["What kind of gripper is on you?", "How many fingers have you got?", "그리퍼는 무슨 제품이에요?", "손가락이 몇 개니?",
|
||||
"집게는 뭐 써?", "can you grab a paper cup?"],
|
||||
"lidar": ["Is there a lidar on you?", "How far can the lidar measure?", "라이다 달려 있니?", "라이다 있으십니까?", "레이저 스캐너 있어?"],
|
||||
"sensors": ["Which sensors are on this robot?", "What sensors do you use?", "센서 어떤 게 달려 있어요?", "무슨 센서 있니?", "센서 몇 개 달렸노?"],
|
||||
"stairs": ["Can you go up the stairs?", "Are you able to climb stairs?", "계단도 올라가니?", "계단 오르실 수 있습니까?", "턱 넘을 수 있나?",
|
||||
"can you climb a ramp?"],
|
||||
"turn_range": ["How far does your head rotate?", "Can you spin your head all the way around?", "고개 얼마나 돌아가니?", "허리는 몇 도 돌아가요?",
|
||||
"머리 360도 돌릴 수 있어?"],
|
||||
"grow": ["Can you become taller?", "What is your max height?", "키 늘릴 수 있어요?", "최대 몇 센티까지 커져?", "키 높이 조절되나요?"],
|
||||
"charging": ["How do you recharge yourself?", "Do you charge on your own?", "충전은 어떻게 하세요?", "혼자 충전하러 가요?",
|
||||
"배터리 떨어지면 어떡해요?"],
|
||||
"battery_spec": ["What type of battery do you use?", "How many volts?", "배터리 종류 뭐야?", "배터리 용량이 몇이에요?"],
|
||||
"navigation": ["How do you find the way?", "Do you drive by yourself?", "자율주행 되니?", "길은 어떻게 찾으세요?", "지도 가지고 있어?",
|
||||
"are you self-driving?"],
|
||||
"obstacles": ["How do you not bump into people?", "Do you avoid obstacles?", "장애물은 어떻게 피하니?", "사람한테 안 부딪혀요?"],
|
||||
"dance": ["Are you able to dance?", "Can you walk around?", "춤 출 수 있니?", "걸어 다닐 수 있어요?", "do you have any legs?", "날 수 있니?"],
|
||||
"doors": ["Are you able to open a door?", "문 여실 수 있어요?", "문 열 줄 아니?"],
|
||||
"software": ["What language is your software in?", "Is your code Python?", "프로그램 무슨 언어로 짰어요?", "소프트웨어 뭘로 만들었어?"],
|
||||
"detector": ["What model detects objects?", "Do you run YOLO?", "물체 인식 모델 뭐야?", "사람 인식은 어떻게 하세요?"],
|
||||
"teach": ["Can people teach you new skills?", "Are you able to learn?", "새로운 거 배울 수 있어요?", "가르치면 배우니?"],
|
||||
"touch": ["Is it OK to touch the robot?", "Can children touch you?", "만져 봐도 돼요?", "만져도 되니?"],
|
||||
"accuracy": ["How precise is your arm?", "What is your precision?", "정밀도가 얼마나 돼요?", "오차가 얼마나 나?"],
|
||||
"pick_what": ["What can you pick?", "Which objects can you grab?", "뭐 집을 수 있어요?", "바닥에서 주울 수 있니?"],
|
||||
"operator": ["Who is in charge of you here?", "Who operates this robot?", "누가 관리하세요?", "담당자 누구야?"],
|
||||
})
|
||||
NEG += ["turn your head left", "tilt your head down", "고개 돌려", "허리 오른쪽으로 돌려", "go to the charger", "충전하러 가자",
|
||||
"dance please", "춤 한번 춰 봐", "open the door for me", "문 좀 열어 주세요", "pick up the red cup", "빨간 컵 집어 줘",
|
||||
"how wide is the hallway", "복도 폭이 얼마예요", "where are the stairs", "엘리베이터 어디 있어요", "who's the staff here?",
|
||||
"how do I charge my phone?", "핸드폰 충전 어디서 해요?", "does the barista robot have a lidar?", "바리스타 로봇 팔 몇 축이에요?",
|
||||
"do you like to dance?", "춤 좋아해?", "lift your arm", "팔 들어", "reach out your hand", "손 내밀어 줘"]
|
||||
|
||||
POS.update({
|
||||
"co_what": ["What's Cutshion?", "Tell me about Cutshion Company.", "쿳션은 무슨 회사예요?", "쿳션이 뭐 하는 회사니?", "쿳션 뭐 하는 데고?"],
|
||||
"co_founded": ["How old is Cutshion?", "When did Cutshion start?", "쿳션 몇 년 됐어?", "쿳션은 언제 설립되었습니까?", "회사 언제 만들어졌어요?"],
|
||||
"co_ceo": ["Who is the CEO of Cutshion?", "Who founded Cutshion?", "쿳션 대표가 누구야?", "쿳션 대표님 성함이 어떻게 되십니까?", "사장님 누구예요?"],
|
||||
"co_hq": ["Where is Cutshion located?", "Cutshion address?", "쿳션 어디에 있어요?", "쿳션 본사 위치가 어떻게 돼요?", "회사 주소 좀 알려 주세요"],
|
||||
"co_contact": ["How can I reach Cutshion?", "Cutshion's phone number please", "쿳션 전화번호 알려 줘", "쿳션 연락처가 어떻게 되나요?",
|
||||
"쿳션 이메일 주소 뭐예요?"],
|
||||
"co_products": ["What robots does Cutshion make?", "Which products does Cutshion sell?", "쿳션 무슨 로봇 만들어요?", "쿳션 제품 뭐가 있나요?"],
|
||||
"co_awards": ["Has Cutshion won awards?", "쿳션 상 받은 적 있어요?", "쿳션 수상 경력 알려 주세요"],
|
||||
"co_unknown": ["How many employees does Cutshion have?", "직원 몇 명이에요?", "쿳션 매출 얼마예요?", "Is Cutshion hiring?", "쿳션 직원 수가 몇 명이에요?"],
|
||||
"co_icecream": ["How heavy is the ice cream robot?", "How fast is the ice cream robot?", "아이스크림 로봇은 뭐예요?", "Tell me about the ice cream robot"],
|
||||
"co_barista": ["What does the barista robot do?", "바리스타 로봇 뭐 하는 거예요?", "커피 로봇 설명해 주세요"],
|
||||
"co_candyball": ["What's the candy ball robot?", "캔디볼 로봇이 뭐야?"],
|
||||
"co_pionoid": ["What is Pionoid?", "피오노이드가 뭐예요?"],
|
||||
"price": ["Is Lumi for sale?", "가격이 어떻게 되나요?", "이 로봇 가격 좀 알려 주세요", "Can I rent this robot?", "렌탈 가능해요?"],
|
||||
})
|
||||
NEG += ["does the barista robot have a lidar?", "make me a latte", "라떼 한 잔 만들어 줘", "where's the coffee robot?", "바리스타 로봇 어디 있어?",
|
||||
"what is samsung?", "who is the CEO of Google?", "애플 대표가 누구야?", "커피 얼마예요?", "this cushion is comfy"]
|
||||
|
||||
def run():
|
||||
ok = bad = miss = 0
|
||||
lines = []
|
||||
for kind, texts in POS.items():
|
||||
for t in texts:
|
||||
got = qa.kind_of(t)
|
||||
if got == kind:
|
||||
ok += 1
|
||||
elif got is None:
|
||||
miss += 1; lines.append(f"miss {kind:12} {t!r} guard={qa.guarded(t)}")
|
||||
else:
|
||||
bad += 1; lines.append(f"WRONG {kind:12} {t!r} -> {got}")
|
||||
nok = 0
|
||||
for t in NEG:
|
||||
got = qa.kind_of(t)
|
||||
if got is None:
|
||||
nok += 1
|
||||
else:
|
||||
bad += 1; lines.append(f"WRONG no {t!r} -> {got}")
|
||||
n = sum(map(len, POS.values()))
|
||||
print("\n".join(lines))
|
||||
print(f"pos {ok}/{n} ({miss} missed), neg {nok}/{len(NEG)}, wrong {bad}")
|
||||
|
||||
run()
|
||||
@@ -0,0 +1,24 @@
|
||||
"""Every first utterance (commands: 'text' with no 'before'; dialogues: first turn 'say') of the blind train sets
|
||||
through quick_answers.kind_of with no history: list the hits for review."""
|
||||
import glob, importlib, sys
|
||||
sys.path.insert(0, __file__.rsplit("/tests/", 1)[0])
|
||||
from assistant import quick_answers as qa
|
||||
seen = set()
|
||||
for f in sorted(glob.glob("tests/blind/train/*.py") + glob.glob("tests/blind/r[234]/train/*.py") + glob.glob("tests/blind/r6/train/*.py")):
|
||||
mod = f[:-3].replace("/", ".")
|
||||
if mod.endswith("__init__"): continue
|
||||
m = importlib.import_module(mod)
|
||||
texts = []
|
||||
for c in getattr(m, "CASES", []):
|
||||
if isinstance(c, dict) and c.get("text") and not c.get("before") and not c.get("ctx"):
|
||||
texts.append((c["text"], c.get("expect") or c.get("kind")))
|
||||
for d in getattr(m, "DIALOGUES", []):
|
||||
t = d.get("turns") or []
|
||||
if t and t[0].get("say"):
|
||||
texts.append((t[0]["say"], t[0].get("expect_action")))
|
||||
for t, e in texts:
|
||||
if t in seen: continue
|
||||
seen.add(t)
|
||||
k = qa.kind_of(t)
|
||||
if k: print(f"{k:12} {mod.split('.')[-2]}/{mod.split('.')[-1]:20} {t!r} want={e}")
|
||||
print("texts", len(seen))
|
||||
@@ -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")
|
||||
|
||||
@@ -0,0 +1,121 @@
|
||||
"""Rules-only routing of weather / news questions and weather follow-ups. python web_eval.py"""
|
||||
import sys
|
||||
sys.path.insert(0, __file__.rsplit("/tests/", 1)[0])
|
||||
from assistant import brain, web
|
||||
|
||||
WEATHER = { # text -> place expected ("" = here)
|
||||
"what's the weather like": "", "how's the weather today": "", "weather?": "", "weather today": "",
|
||||
"is it going to rain today": "", "will it rain tomorrow": "", "do i need an umbrella": "", "is it cold outside": "",
|
||||
"what's the temperature outside": "", "what's the forecast for tomorrow": "", "what's the weather this weekend": "",
|
||||
"how hot will it be tomorrow": "", "will it snow tomorrow": "", "is it sunny outside": "", "what's the weather in Busan": "Busan",
|
||||
"how's the weather in Tokyo today": "Tokyo", "weather in New York": "New York", "what's the weather like in Jeju tomorrow": "Jeju",
|
||||
"is it raining in London": "London", "how cold is it in Seoul": "Seoul", "what will the weather be on Saturday": "",
|
||||
"weather forecast for next week": "", "should i bring a jacket": "", "is it humid today": "", "is it windy outside": "",
|
||||
"날씨 어때": "", "오늘 날씨 어때요": "", "내일 날씨 어때": "", "내일 비 와": "", "내일 비 와요?": "", "비 올까요?": "", "우산 가져가야 돼?": "",
|
||||
"밖에 추워?": "", "오늘 기온 몇 도야": "", "주말 날씨 어때요": "", "이번 주 날씨 알려 줘": "", "부산 날씨 어때": "Busan",
|
||||
"제주도 날씨 알려 주세요": "Jeju City", "도쿄 날씨는 어때요": "Tokyo", "서울 내일 날씨": "Seoul", "모레 날씨 어떻습니까": "",
|
||||
"눈 와?": "", "오늘 더워요?": "", "날씨 좀 알려 줘": "", "오늘 날씨 how": "", "weather 어때": "", "부산 weather 어때": "Busan",
|
||||
"today weather 알려 줘": "", "내일 rain 와?": "", "지금 몇 도야": "", "오늘 몇 도예요": "", "밖에 날씨 어때": "",
|
||||
"오늘 미세먼지 어때": "", "how many degrees is it": "", "what's it like outside": "", "is it nice out today": "",
|
||||
"대구는 오늘 더워요?": "Daegu", "광주 날씨": "Gwangju", "오사카 날씨 어때": "Osaka", "what's the weather in Paris this weekend": "Paris",
|
||||
"오늘 날씨 좋아?": "", "is it going to be cold tonight": "", "내일 아침 추워요?": "",
|
||||
}
|
||||
WEATHER.update({ # every Korean level, new this night
|
||||
"오늘 날씨 어떻습니까": "", "오늘 날씨 어떠세요": "", "날씨가 어떻게 되나요": "", "오늘 날씨 어떻노": "", "날씨 우째 되노": "", "날씨 어뗘": "",
|
||||
"내일 날씨 좀 알려 주시겠어요": "", "내일 날씨 알려 주십시오": "", "날씨 좀 알려 줄래": "", "내일 비 옵니까": "", "내일 비 오나요": "",
|
||||
"내일 비 오노": "", "비 올 것 같아요": "", "주말에 비 와요": "", "토요일 날씨 어때": "", "모레 날씨 어떠세요": "", "다음 주 날씨는요": "",
|
||||
"부산 날씨 어떻습니까": "Busan", "부산 날씨 우째 되노": "Busan", "제주 날씨 알려 주세요": "Jeju", "대구 오늘 더워요": "Daegu",
|
||||
"서울 날씨 어떠세요": "Seoul", "내일 서울 비 와": "Seoul", "오늘 춥나요": "", "밖에 춥습니까": "", "오늘 많이 추워요": "",
|
||||
"내일 아침 쌀쌀해요": "", "미세먼지 심해요": "", "미세먼지 어떻습니까": "", "황사 와요": "", "우산 챙겨야 돼요": "", "우산 가져가야 됩니까": "",
|
||||
"눈 올까요": "", "내일 눈 와": "", "weather 어떻습니까": "", "내일 weather 알려 줘": "", "forecast 좀 알려 주세요": "",
|
||||
"what's the weather gonna be like tomorrow": "", "any rain today": "", "is it going to snow this weekend": "",
|
||||
"how's the weather looking for saturday": "", "do we need umbrellas today": "", "what's the temperature in Seoul": "Seoul",
|
||||
"how cold will it be tonight": "", "is it raining outside": "", "weather for Busan tomorrow": "Busan",
|
||||
})
|
||||
NEWS = ["latest news", "what's the latest news", "any news today", "tell me the news", "news please", "what's in the news",
|
||||
"today's headlines", "AI news", "any AI news", "sports news", "latest sports news", "tech news", "world news",
|
||||
"what happened today", "what's happening in the world", "오늘 뉴스", "오늘 뉴스 알려 줘", "최신 뉴스", "뉴스 알려 주세요",
|
||||
"AI 뉴스", "스포츠 뉴스 알려 줘", "요즘 무슨 일 있어", "오늘 무슨 일 있었어", "경제 뉴스", "뉴스 좀 들려줘", "news 알려 줘",
|
||||
"오늘 headline 뭐야", "최근 소식 알려 줘", "what's new in tech", "IT 뉴스", "연예 뉴스", "세계 뉴스 알려 줘",
|
||||
"who won the game last night", "어제 야구 누가 이겼어", "bitcoin price", "달러 환율 얼마야", "삼성전자 주가 얼마야",
|
||||
"who is the president of the US", "미국 대통령이 누구야"]
|
||||
NEWS += ["뉴스 좀 알려 주시겠어요", "오늘 뉴스 알려 주십시오", "최신 뉴스 있습니까", "요즘 뉴스 뭐 있노", "뉴스 들려줘", "스포츠 소식 알려 줘",
|
||||
"경제 뉴스 좀 알려 주세요", "IT 뉴스 있어요", "오늘 헤드라인이 뭐예요", "주요 뉴스 알려 줘", "환율 얼마예요", "달러 환율 어떻게 돼요",
|
||||
"비트코인 지금 얼마예요", "코스피 어때요", "any news about AI", "what are today's headlines", "give me the latest news",
|
||||
"sports news please", "what's the dollar rate today", "how's the stock market today"]
|
||||
NOT = ["do you like rainy weather", "what's your favourite weather", "is it hot in here", "you're cool", "날씨 좋아해?",
|
||||
"how do you know the weather", "the news is boring", "what's your temperature",
|
||||
"어떤 날씨 좋아해", "우산 어디 있어요?", "우산 잃어버렸어요", "where is my umbrella", "실내 너무 더워요", "i like the news", "are you cold", "추워?", "너 더워?"]
|
||||
FOLLOW = [ # (first question, follow-up, expected place or None for "not a weather follow-up")
|
||||
("what's the weather today", "and tomorrow?", ""), ("what's the weather today", "what about Busan?", "Busan"),
|
||||
("what's the weather today", "and the weekend?", ""), ("what's the weather today", "what about the weekend?", ""),
|
||||
("what's the weather today", "how about Friday?", ""), ("what's the weather today", "and in Tokyo?", "Tokyo"),
|
||||
("what's the weather today", "tomorrow?", ""), ("what's the weather today", "and next week?", ""),
|
||||
("what's the weather today", "the day after?", ""), ("what's the weather today", "what about tonight?", ""),
|
||||
("what's the weather today", "and New York tomorrow?", "New York"), ("what's the weather today", "is it going to rain?", ""),
|
||||
("what's the weather today", "do I need an umbrella then?", ""),
|
||||
("오늘 날씨 어때", "내일은?", ""), ("오늘 날씨 어때", "부산은?", "Busan"), ("오늘 날씨 어때", "주말은요?", ""),
|
||||
("오늘 날씨 어때", "그럼 내일은요?", ""), ("오늘 날씨 어때", "모레는?", ""), ("오늘 날씨 어때", "제주도는요?", "Jeju City"),
|
||||
("오늘 날씨 어때", "부산 내일은?", "Busan"), ("오늘 날씨 어때", "다음 주는?", ""), ("오늘 날씨 어때", "금요일은 어때요?", ""),
|
||||
("오늘 날씨 어때", "그럼 도쿄는?", "Tokyo"), ("오늘 날씨 어때", "비는 와?", ""), ("오늘 날씨 어때", "내일 비 와?", ""),
|
||||
("오늘 날씨 어때", "tomorrow는?", ""), ("what's the weather today", "내일은?", ""), ("오늘 날씨 어때", "what about Busan?", "Busan"),
|
||||
("오늘 날씨 어때", "저녁에는?", ""), ("오늘 날씨 어때", "이번 주말은 어때요?", ""),
|
||||
# every Korean level and English, new this night
|
||||
("오늘 날씨 어때", "내일은요?", ""), ("오늘 날씨 어때", "내일은 어떻습니까?", ""), ("오늘 날씨 어때", "내일은 어떠세요?", ""),
|
||||
("오늘 날씨 어때", "내일은 우째 되노?", ""), ("오늘 날씨 어때", "내일은 어뗘?", ""), ("오늘 날씨 어때", "주말엔 어때요?", ""),
|
||||
("오늘 날씨 어때", "주말에는 어떻습니까?", ""), ("오늘 날씨 어때", "주말엔?", ""), ("오늘 날씨 어때", "부산은 어떻노?", "Busan"),
|
||||
("오늘 날씨 어때", "부산은요?", "Busan"), ("오늘 날씨 어때", "그럼 부산은 어떻습니까?", "Busan"), ("오늘 날씨 어때", "대구는 어때?", "Daegu"),
|
||||
("오늘 날씨 어때", "모레는 어떻게 돼요?", ""), ("오늘 날씨 어때", "토요일은요?", ""), ("오늘 날씨 어때", "내일 아침은?", ""),
|
||||
("오늘 날씨 어때", "우산 챙겨야 돼?", ""), ("오늘 날씨 어때", "비 와요?", ""), ("오늘 날씨 어때", "눈은 와?", ""),
|
||||
("오늘 날씨 어때", "추워요?", None), ("오늘 날씨 어때", "미세먼지는요?", ""), ("오늘 날씨 어때", "내일 부산은요?", "Busan"),
|
||||
("오늘 날씨 어때", "다음 주 월요일은?", ""), ("오늘 날씨 어때", "그 다음 날은?", ""), ("부산 날씨 어때", "내일은?", ""),
|
||||
("what's the weather today", "and then?", ""), ("what's the weather today", "what about tomorrow?", ""),
|
||||
("what's the weather today", "how's Saturday looking?", ""), ("what's the weather today", "and the day after tomorrow?", ""),
|
||||
("what's the weather today", "what about Jeju?", "Jeju"), ("what's the weather today", "is it cold?", None),
|
||||
("what's the weather today", "will it snow?", ""), ("what's the weather today", "and this evening?", ""),
|
||||
("what's the weather today", "what about next Monday?", ""), ("what's the weather today", "how about in Seoul?", "Seoul"),
|
||||
("what's the weather today", "should I bring a jacket?", ""), ("what's the weather in Busan", "and tomorrow?", ""),
|
||||
("what's the weather today", "thanks", None), ("오늘 날씨 어때", "좋네", None), ("what's the weather today", "cool", None),
|
||||
("오늘 날씨 어때", "알겠어요", None), ("what's the weather today", "what's your name?", None), ("오늘 날씨 어때", "고마워", None), ("what's the weather today", "okay", None),
|
||||
]
|
||||
|
||||
def run():
|
||||
bad = []
|
||||
n = ok = 0
|
||||
for t, place in WEATHER.items():
|
||||
n += 1
|
||||
got = brain.intent(t)
|
||||
if got and got[0] == "weather" and (not place or place.lower() in (got[1] or "").lower()):
|
||||
ok += 1
|
||||
else:
|
||||
bad.append(f"weather {t!r} -> {got} (want {place!r})")
|
||||
for t in NEWS:
|
||||
n += 1
|
||||
got = brain.intent(t)
|
||||
if got and got[0] == "search":
|
||||
ok += 1
|
||||
else:
|
||||
bad.append(f"search {t!r} -> {got}")
|
||||
wrong = 0
|
||||
for t in NOT:
|
||||
got = brain.intent(t)
|
||||
if got and got[0] in ("weather", "search"):
|
||||
wrong += 1; bad.append(f"WRONG {t!r} -> {got}")
|
||||
fok = 0
|
||||
for first, follow, place in FOLLOW:
|
||||
b = brain.Brain()
|
||||
b.history = [(first + brain.WEATHER_ASKED, "ACTION: weather -\nIt is clear, 15 degrees.")]
|
||||
b.last_lookup = first + brain.WEATHER_ASKED
|
||||
rule = brain.intent(follow) # the live path: the rules first, the turn before second
|
||||
head = {"action": rule[0], "target": rule[1]} if rule and rule[0] in ("weather", "search") else {"action": "none", "target": ""}
|
||||
h = b._after(head, follow)
|
||||
got = h and h["action"] == "weather" and h["target"]
|
||||
if place is None:
|
||||
good = not (h and h["action"] == "weather")
|
||||
else:
|
||||
good = h and h["action"] == "weather" and (h["target"] or "").lower() == place.lower()
|
||||
if good: fok += 1
|
||||
else: bad.append(f"follow {first!r} -> {follow!r}: {h} (want {place!r})")
|
||||
print("\n".join(bad))
|
||||
print(f"first questions {ok}/{n}, wrong on NOT {wrong}/{len(NOT)}, follow-ups {fok}/{len(FOLLOW)}")
|
||||
run()
|
||||
Reference in New Issue
Block a user