プリンキピア

第10章現代のリカレントニューラルネットワーク

10.5.5. Summary10.5.5 まとめ

In natural language processing, machine translation refers to the task of automatically mapping from a sequence representing a string of text in a source language to a string representing a plausible translation in a target language. Using word-level tokenization, the vocabulary size will be significantly larger than that using character-level tokenization, but the sequence lengths will be much shorter. To mitigate the large vocabulary size, we can treat infrequent tokens as some “unknown” token. We can truncate and pad text sequences so that all of them will have the same length to be loaded in minibatches. Modern implementations often bucket sequences with similar lengths to avoid wasting excessive computation on padding.
英語のヒント
自然言語処理では、機械翻訳とは、原言語のテキストの文字列を表す系列から、目標言語でのもっともらしい翻訳を表す文字列へと自動で写す課題を指す。単語単位のトークン化を使うと、語彙の大きさは文字単位のトークン化を使うときよりかなり大きくなるが、系列の長さはずっと短くなる。語彙の大きさを和らげるため、まれなトークンを何らかの「未知の」トークンとして扱える。テキスト系列を打ち切ったり詰め物をしたりして、すべてが同じ長さになり、ミニバッチに読み込めるようにできる。現代の実装では、詰め物に計算を無駄に使いすぎないよう、長さの似た系列をバケットにまとめることが多い。