1. 개인학습
- 필수과제, 시각화 강의
2. 필수과제
- 번역 모델 전처리
- List comprehension + try catch
src_sentence = [catch(UNK, src_word2idx, word) for word in raw_src_sentence] tgt_sentence = [catch(UNK, tgt_word2idx, word) for word in raw_tgt_sentence] def catch(UNK, dix, word): try: return dix[word] except: return UNK- 원소 값을 key로 min 값 찾기
src_len_min = min(sentence_length, key=lambda x: x)[0] tgt_len_min = min(sentence_length, key=lambda x: x)[1]- 3-2 결과는 왜 바뀌는 건가?