Improve command, cup task and talk understanding in English and Korean

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-26 15:30:06 +09:00
co-authored by Claude Opus 5.5
parent e3a1c123c9
commit e3fcfd30ab
23 changed files with 1380 additions and 167 deletions
+47
View File
@@ -0,0 +1,47 @@
"""Cup-task wordings for the intent bank (F1, night 4): fetch from a place said in every way ("the cup on p2",
"p2에 있는 컵", "피원 컵을", "move the cup from A to B", "옮겨"), at every Korean level; and "no": the same words
reported, asked about, put off or taken back (nothing moves). The words decide the fields (brain.parse_fetch)."""
_KO_FETCH = ["<place>에 있는 <obj> 가져와", "<place>에 있는 <obj> 좀 갖다 줘", "<place>에 놓인 <obj> 가져와",
"<place> <obj> 가져와", "<place>의 <obj> 가져다 줘", "<place> 위에 있는 <obj> 가져와",
"<place>에서 <obj> 집어서 가져와", "<place>에서 <obj> 들고 와", "<place>에 있는 <obj>을 여기로 가져와",
"<place>에서 <obj> 좀 챙겨 와", "<place>에 있는 <obj> 옮겨 와"]
_KO_END = [("가져와", ["가져와", "가져와요", "가져오세요", "가져오십시오", "가져와 주세요", "가져와 주시겠어요?",
"가져와 주시겠습니까?", "가져와 줄래?", "가져오게", "가져와 주게나", "가져온나", "가져와유",
"가져와 주이소", "가져와 주실 수 있으신가요?", "가져와 주시면 감사하겠습니다"]),
("갖다 줘", ["갖다 줘", "갖다 주세요", "갖다 주십시오", "갖다 주실래요?", "갖다 주게", "갖다 줘유",
"갖다 주이소", "갖다 주시겠어요?", "갖다 드려 주세요"]),
("가져다 줘", ["가져다 줘", "가져다 주세요", "가져다 주십시오", "가져다 주시겠습니까?", "가져다 주게나"]),
("들고 와", ["들고 와", "들고 와요", "들고 오세요", "들고 오십시오"]),
("챙겨 와", ["챙겨 와", "챙겨 와요", "챙겨 오세요"]),
("옮겨 와", ["옮겨 와", "옮겨 와 주세요", "옮겨 오십시오"])]
_EN_FETCH = ["bring me the <obj> on <place>", "get me the <obj> that's on <place>", "fetch the <obj> sitting at <place>",
"grab the <obj> at <place> and bring it here", "bring the <obj> over from <place>",
"<place> <obj>, bring it to me", "go to <place>, get the <obj> and bring it back to me",
"pick up the <obj> at <place> and bring it to me", "the <obj> on <place>, could you fetch it",
"move the <obj> from <place> over here", "carry the <obj> from <place> to me"]
_EN_FRAME = ["{}", "please {}", "could you {}", "would you mind, {}", "can you {} for me", "{} please", "lumi, {}",
"hey robot, {}", "excuse me, {}", "i need you to {}", "{} real quick", "do me a favour and {}"]
_NO = ["did you bring the <obj> from <place>?", "you brought the <obj> from <place> yesterday", "can you bring cups at all?",
"don't bring the <obj> from <place>", "i'll bring the <obj> from <place> myself", "tomorrow bring the <obj>",
"maybe later you can bring the <obj> from <place>", "my friend brought the <obj> from <place>",
"she asked whether you can fetch things", "bring me the <obj> from <place>, no wait, never mind",
"<place>에서 <obj> 가져왔어?", "어제 <obj> 가져왔지?", "<place>에서 <obj> 가져오지 마", "내가 <obj> 가져올게",
"나중에 <obj> 가져와 줘", "<obj> 가져올 수 있어?", "친구가 <place>에서 <obj> 가져왔대", "<obj> 가져오는 거 봤어",
"<place>에서 <obj> 가져와, 아 아니다 됐어", "<obj> 가져오시면 안 됩니다", "<obj> 가져다 주실 필요 없어요",
"할머니가 <obj> 가져오라고 하셨는데 괜찮아", "<obj> 가져오는 건 내일 해", "<place>에서 <obj> 가져다 줄 수 있나 궁금하네"]
def _ko():
"""Each wording with the endings of every level for its verb."""
out = []
for base in _KO_FETCH:
for verb, ends in _KO_END:
if base.endswith(verb):
out += [f"{base[:-len(verb)].rstrip()} {e}" for e in ends]
return out
INTENT = {"fetch": sorted(set(_ko() + [f.format(c) for c in _EN_FETCH for f in _EN_FRAME])), "no": _NO}
+24
View File
@@ -227,3 +227,27 @@ QUICK["no"] = QUICK.get("no", []) + [
"시간 괜찮아요", "시간 돼요", "give me a second", "give me a minute", "give me some time", "do you have time",
"이름 지어 줄까", "내 이름은 민수야", "제 이름 기억해요", "우리 애 몇 살 같아요", "제가 몇 살 같아요", "나 몇 살로 보여",
"누가 이겼어", "누가 더 빨라", "몇 시에 끝나요", "몇 시에 시작해요"]
# ---------- night 4: Konglish verbs and short dialect forms ko_plain does not turn into the plain verb ----------
INTENT["pick"] += _v(["<obj> 그랩 해", "<obj> 그랩", "<obj> 픽 해", "<obj> 픽업해", "<obj> 캐치 해", "<obj> 홀드 해",
"<obj> 잡아 봐라", "<obj> 집어 도", "<obj> 쫌 집어"], ("", " 줘"))
INTENT["fetch"] += _v(["<obj> 겟 해 와", "<obj> 겟해 와", "<obj> 브링 해", "<obj> 가져와 봐라", "<obj> 갖고 온나",
"<obj> 퍼뜩 가져와", "<obj> 쫌 갖다 도", "나한테 <obj> 브링"], ("", " 줘"))
INTENT["follow"] += _v(["팔로우 해", "나 팔로우", "날 팔로우", "come with 나", "나랑 같이 가", "같이 가자 루미",
"내 뒤로 붙어", "졸졸 따라 댕겨", "따라 온나"], ("", " 줘"))
INTENT["come"] += _v(["컴 히어", "컴온 히어", "이리로 컴", "여기로 컴", "가까이 컴", "이리 온나", "일로 온나", "이리 오이라"],
("", " 해", " 해 줘"))
INTENT["wave"] += _v(["웨이브 해", "하이 해", "바이바이 해", "빠이빠이 해", "손 인사 해", "손으로 인사 해", "핸드 웨이브 해",
"손 흔들어 봐라", "손 쫌 흔들어"], ("", " 줘", " 봐"))
INTENT["arm_reach"] += _v(["손 줘라", "핸드 줘", "암 내밀어", "핸드 아웃 해", "손 쭉 내밀어 봐라", "팔 뻗어 봐라",
"손 이리 도", "손 쫌 도"], ("", " 줘"))
INTENT["arm_fold"] += _v(["암 다운 해", "암 폴드 해", "arm fold 해", "팔 원위치 해", "팔 집어넣어", "손 거둬 들여",
"팔 접어 봐라"], ("", " 줘"))
INTENT["look"] += _v(["룩 업 해", "룩 다운 해", "업 봐", "다운 봐", "레프트 봐", "라이트 봐", "위로 룩", "아래로 룩",
"고개 쫌 들어", "고개 쫌 숙여", "고개 들어 봐라", "고개 숙여 봐라"], ("", " 줘"))
INTENT["lift"] += _v(["바디 업", "바디 다운", "키 업", "키 다운", "몸 업", "몸 다운", "몸 쫌 올려", "몸 쫌 내려",
"키 쫌 키워", "키 쫌 줄여"], ("", " 해", " 해 줘"))
INTENT["turn"] += _v(["턴 해", "레프트 턴", "라이트 턴", "라이트로 턴", "레프트로 턴", "백 턴", "유턴 쫌", "한 바퀴 턴",
"왼쪽으로 돌아 봐라", "오른쪽으로 돌아 봐라"], ("", " 해", " 해 줘"))
INTENT["move"] += _v(["무브 포워드", "고 백", "백 해", "앞으로 무브", "뒤로 무브", "레프트로 무브", "라이트로 무브",
"앞으로 쪼매 가 봐라", "뒤로 쫌 빠져"], ("", " 줘"))