0Pricing
NLP Academy · Lezione

Perché il contesto cambia il significato delle parole

Bank: la riva del fiume o il denaro in banca

Perché il contesto cambia il significato delle parole è una lezione NLP Academy gratuita su CoddyKit. Questa è la lezione 1 di 4. Puoi leggere la lezione completa qui gratuitamente — poi esercitati direttamente nel browser con un editor di codice integrato e un tutor IA disponibile 24/7. Fa parte del percorso di apprendimento NLP Academy, e i tuoi progressi si sincronizzano tra il web e l'app CoddyKit. Il corso NLP Academy include 4 lezioni in totale.

Parti di questa lezione non sono ancora state tradotte e vengono mostrate in inglese.

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. ✅

Domande Frequenti

La lezione «Perché il contesto cambia il significato delle parole» è gratuita?

Sì — il testo completo di «Perché il contesto cambia il significato delle parole» è gratuito qui sul web. Per esercitarvi in modo interattivo (un editor di codice integrato e un tutor IA 24/7) e sbloccare il resto del corso NLP Academy, passa a CoddyKit PRO. Il corso NLP Academy include 4 lezioni in totale.

Cosa imparerò in «Perché il contesto cambia il significato delle parole»?

Bank: la riva del fiume o il denaro in banca Eserciti NLP Academy con codice pratico che esegui direttamente nel browser, e un tutor IA 24/7 risponde alle tue domande mentre lavori sulla lezione.

Ho bisogno di esperienza per iniziare NLP Academy?

Non è richiesta alcuna esperienza precedente. NLP Academy su CoddyKit è strutturato per principianti e studenti avanzati, quindi puoi iniziare da qui o dall'inizio e procedere al tuo ritmo. Questa è la lezione 1 di 4.

Quanto tempo richiede la lezione «Perché il contesto cambia il significato delle parole»?

La maggior parte delle lezioni CoddyKit richiede circa 5–10 minuti. Ogni lezione è breve e interattiva, quindi fai progressi costanti e riprendi esattamente da dove hai lasciato su web e app.

Posso scrivere ed eseguire codice in questa lezione NLP Academy?

Sì. Ogni lezione NLP Academy include un editor di codice integrato, quindi scrivi ed esegui codice reale direttamente nel tuo browser e ricevi feedback istantaneo dall'IA — nessuna configurazione locale necessaria.

Tutte le lezioni di questo corso

  1. Perché il contesto cambia il significato delle parole
  2. Masked language modeling
  3. Creare embedding di frasi con BERT
  4. Scegliere il modello pre-addestrato corretto
← Torna a NLP Academy