文脈で単語の意味が変わる理由
川岸の bank とお金の bank
「文脈で単語の意味が変わる理由」はCoddyKit上の無料NLP Academyレッスンです。 これはレッスン1/4です。 下記で完全なレッスンを無料で読むことができます。その後、ブラウザ内の組み込みコードエディタと24時間対応のAIチューターでハンズオン演習できます。 これはNLP Academy学習パスの一部であり、ウェブとCoddyKitアプリ全体で進捗が同期されます。 NLP Academyコースには全4レッスンが含まれています。
このレッスンの一部はまだ翻訳されておらず、英語で表示されています。
One Word, Many Meanings
The word bank can mean a river edge or a place for money. Its meaning depends entirely on the context around it.
Static Vectors Fall Short
word2vec and GloVe give each word one fixed vector. So bank gets a single static meaning, no matter the sentence it appears in.
See the Problem
These two sentences use bank in opposite ways, yet a static model hands them the very same vector for the word.
s1 = "sit on the bank of the river"
s2 = "deposit cash at the bank"Humans Read Context
You instantly know which bank is meant because you read the surrounding words. Meaning lives in context, not in the word alone.
Enter Contextual Embeddings
A contextual model gives bank a different vector in each sentence. The embedding now shifts to fit its context every time. ✨
Meet BERT
BERT is a transformer that reads a whole sentence at once and produces context-aware vectors. It is built around attention over all the words.
Reading Both Directions
BERT looks at words on the left and the right of each token together. That two-way view is what bidirectional means.
Same Token, New Vector
Feed both river and money sentences to BERT and bank comes out with two distinct vectors. The embedding tracks the sentence.
Polysemy Solved
Words with many senses, called polysemy, used to confuse static models. Contextual embeddings finally separate those senses cleanly.
Why It Matters
Search, translation, and question answering all improve when a model truly grasps which meaning a word carries right now.
The Big Shift
Moving from one vector per word to one per usage was a turning point. This is the heart of modern NLP.
Quick Check
What makes contextual embeddings different from static ones?
Recap
Static vectors trap each word in one meaning. Contextual embeddings from BERT shift per sentence, capturing the right sense. ✅
よくある質問
「文脈で単語の意味が変わる理由」レッスンは無料ですか?
はい。「文脈で単語の意味が変わる理由」の完全なテキストはこのウェブで無料で読めます。インタラクティブに演習し(組み込みコードエディタと24時間対応のAIチューター)、NLP Academyコースの残りをアンロックするには、CoddyKit PROにアップグレードしてください。 NLP Academyコースには全4レッスンが含まれています。
「文脈で単語の意味が変わる理由」で何を学びますか?
川岸の bank とお金の bank ブラウザで直接実行するハンズオンコードでNLP Academyを演習し、24時間対応のAIチューターがレッスンを進める中での質問に答えます。
NLP Academyを始めるのに経験は必要ですか?
事前経験は必要ありません。CoddyKitのNLP Academyは初級者から上級者向けに構成されているため、ここから始めるか最初から始めて、自分のペースで進むことができます。 これはレッスン1/4です。
「文脈で単語の意味が変わる理由」レッスンにはどのくらい時間がかかりますか?
ほとんどのCoddyKitレッスンは約5~10分かかります。各レッスンはコンパクトでインタラクティブなので、着実に進歩し、ウェブとアプリ全体で正確に前回の場所から再開できます。
このNLP Academyレッスンでコードを書いて実行できますか?
はい。すべてのNLP Academyレッスンに組み込みコードエディタが含まれているため、ブラウザでリアルコードを書いて実行し、即座のAIフィードバックを取得できます。ローカル設定は不要です。
このコースのすべてのレッスン
- 文脈で単語の意味が変わる理由
- Masked Language Modeling
- BERT で文を埋め込みに変換する
- 適切な学習済みモデルを選ぶ