"21 days of good habits" phase I-14

Strange usage of C in word2vec 1. malloc() and calloc() Both malloc() and calloc() functions can be used to dynamically allocate memory space, but they are slightly different. malloc() function has one parameter, that is, the size of memory space to be allocated: void *malloc(size_t size); The calloc() function has two parameters: ...

Posted by obscurr on Fri, 05 Nov 2021 11:29:28 -0700

Pytoch + text CNN + word2vec movie review practice

0. Preface reference resources: The blogger . I write my own blog to facilitate review 1. Film review data set Dataset Download: Link: https://pan.baidu.com/s/1zultY2ODRFaW3XiQFS-36w Extraction code: mgh2 There are four files in the compressed package. Put the unzipped folder in the project directory The training data set is to ...

Posted by highphilosopher on Mon, 04 Oct 2021 13:06:59 -0700

Cbow & skip gram of Word2Vec

        We introduced the distribution hypothesis before, mainly through the context to construct a co-occurrence matrix, cosine similarity, Jaccard similarity and point mutual information can be used to measure the similarity or relevance of words based on the co-occurrence matrix. In order to avoid the statistical unrelia ...

Posted by The Jackel on Mon, 04 Oct 2021 10:10:36 -0700