Skip to content

Commit 170fbd3

Browse files
Feat: Updated README.md
1 parent 94c2124 commit 170fbd3

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

README.md

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,9 @@ Para guardar el modelo
6161
model.save('word2vec.model')
6262
```
6363

64-
Para distancia de coseno entre dos textos convertidos a arreglos.
64+
Para encontrar la similitud de coseno entre dos textos preprocesados:
6565
```
66-
coseno = model.wv.wmdistance(first_array, second_array)
66+
coseno = model.wv.n_similarity(corpus_a, corpus_b)
6767
```
6868

6969
## Citations
@@ -72,11 +72,3 @@ Ofir Pele and Michael Werman "A linear time histogram metric for improved SIFT m
7272
Ofir Pele and Michael Werman "Fast and robust earth mover's distances" <https://ieeexplore.ieee.org/document/5459199/>_
7373

7474
Matt Kusner et al. "From Word Embeddings To Document Distances" <http://proceedings.mlr.press/v37/kusnerb15.pdf>
75-
76-
#### **Model:**
77-
78-
https://zenodo.org/record/1410403#.Y1fknbbMJD8
79-
80-
Aitor Almeida, & Aritz Bilbao. (2018). Spanish 3B words Word2Vec Embeddings (Version 1.0) [Data set]. Zenodo. http://doi.org/10.5281/zenodo.1410403
81-
82-
Bilbao-Jayo, A., & Almeida, A. (2018). Automatic political discourse analysis with multi-scale convolutional neural networks and contextual data. International Journal of Distributed Sensor Networks, 14(11), 1550147718811827.

0 commit comments

Comments
 (0)