Ask Your Question
3

Is it possible to use Gensim for embeddings that are counted-based?

asked 2023-07-19 06:42:19 +0000

pufferfish gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2023-07-19 07:00:02 +0000

huitzilopochtli gravatar image

Yes, Gensim can be used for counted-based embeddings, such as using the word co-occurrence matrix. The gensim.models module provides the CoOccurrences class, which can be used to create a word co-occurrence matrix from a corpus of documents. This matrix can then be used to train word embeddings using the Word2Vec class or other methods provided by the gensim.models module. However, compared to neural network-based embeddings like Word2Vec, counting-based embeddings are less common as they may not capture more complex relationships between words.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2023-07-19 06:42:19 +0000

Seen: 9 times

Last updated: Jul 19 '23