Extract word matrix and context matrix from output of trainWordEmbedding / word2vec

1 回表示 (過去 30 日間)
Daniel Ringel
Daniel Ringel 2018 年 7 月 13 日
コメント済み: Christopher Creutzig 2018 年 11 月 26 日
When I use trainWordEmbedding on a set of documents to train a word embedding that I can then use word2vec with, I get an object "emb" as output that I can input into word2vec. Using word2vec I then get, for each word, the vectors that I can then further process.
However, I would like to also receive as output the underlying word matrix and context matrix (as well as the value of the loss of the training). Does anyone know how I can access these data?
  1 件のコメント
Christopher Creutzig
Christopher Creutzig 2018 年 11 月 26 日
What exactly do you mean by “word matrix” and “context matrix”?
I guess the “context matrix” is what (some) other people call the cooccurrence matrix in the skip-gram model? We do not currently have a way to compute that.

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeSpecialized Power Systems についてさらに検索

製品


リリース

R2017b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by