Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
学ぶ Challenge: Creating Word Embeddings | Word Embeddings
Introduction to NLP with Python
セクション 4.  4
single

single

bookChallenge: Creating Word Embeddings

メニューを表示するにはスワイプしてください

タスク

スワイプしてコーディングを開始

You have a text corpus stored in corpus variable. Your task is to train a Word2Vec model to generate word embeddings for the given corpus. To do this:

  1. Import the class for creating a Word2Vec model.
  2. Tokenize each sentence in the 'Document' column of the corpus by splitting each sentence into words separated by whitespaces. Store the result in the sentences variable.
  3. Initialize the Word2Vec model by passing sentences as the first argument and setting the following parameters:
    • embedding size: 50;
    • context window size: 2;
    • minimal frequency of words to include in the model: 1;
    • model: skip-gram.
  4. Print the top-3 most similar words to the word 'bowl'.

解答

Switch to desktop実践的な練習のためにデスクトップに切り替える下記のオプションのいずれかを利用して、現在の場所から続行する
すべて明確でしたか?

どのように改善できますか?

フィードバックありがとうございます!

セクション 4.  4
single

single

AIに質問する

expand

AIに質問する

ChatGPT

何でも質問するか、提案された質問の1つを試してチャットを始めてください

some-alt