Challenge: Creating Word Embeddings
Tarefa
Swipe to start coding
Now, it's time for you to train a Word2Vec model to generate word embeddings for the given corpus:
- Import the class for creating a Word2Vec model.
- Tokenize each sentence in the
'Document'
column of thecorpus
by splitting each sentence into words separated by whitespaces. Store the result in thesentences
variable. - Initialize the Word2Vec model by passing
sentences
as the first argument and setting the following values as keyword arguments, in this order:- embedding size: 50;
- context window size: 2;
- minimal frequency of words to include in the model: 1;
- model: skip-gram.
- Print the top-3 most similar words to the word 'bowl'.
Solução
Tudo estava claro?
Obrigado pelo seu feedback!
Seção 4. Capítulo 4
single
Pergunte à IA
Pergunte à IA
Pergunte o que quiser ou experimente uma das perguntas sugeridas para iniciar nosso bate-papo
Awesome!
Completion rate improved to 4.17Awesome!
Completion rate improved to 4.17
Challenge: Creating Word Embeddings
Tarefa
Swipe to start coding
Now, it's time for you to train a Word2Vec model to generate word embeddings for the given corpus:
- Import the class for creating a Word2Vec model.
- Tokenize each sentence in the
'Document'
column of thecorpus
by splitting each sentence into words separated by whitespaces. Store the result in thesentences
variable. - Initialize the Word2Vec model by passing
sentences
as the first argument and setting the following values as keyword arguments, in this order:- embedding size: 50;
- context window size: 2;
- minimal frequency of words to include in the model: 1;
- model: skip-gram.
- Print the top-3 most similar words to the word 'bowl'.
Solução
Tudo estava claro?
Obrigado pelo seu feedback!
Seção 4. Capítulo 4
single
Awesome!
Completion rate improved to 4.17
Challenge: Creating Word Embeddings
Deslize para mostrar o menu
Tarefa
Swipe to start coding
Now, it's time for you to train a Word2Vec model to generate word embeddings for the given corpus:
- Import the class for creating a Word2Vec model.
- Tokenize each sentence in the
'Document'
column of thecorpus
by splitting each sentence into words separated by whitespaces. Store the result in thesentences
variable. - Initialize the Word2Vec model by passing
sentences
as the first argument and setting the following values as keyword arguments, in this order:- embedding size: 50;
- context window size: 2;
- minimal frequency of words to include in the model: 1;
- model: skip-gram.
- Print the top-3 most similar words to the word 'bowl'.
Solução
Tudo estava claro?
Obrigado pelo seu feedback!