Skip to content

Commit

Permalink
Redirect documentation of SCM and WMD to Gallery
Browse files Browse the repository at this point in the history
  • Loading branch information
Witiko committed Feb 28, 2021
1 parent 04e8636 commit 57c1a23
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
8 changes: 3 additions & 5 deletions gensim/similarities/docsim.py
Original file line number Diff line number Diff line change
Expand Up @@ -901,8 +901,7 @@ class SoftCosineSimilarity(interfaces.SimilarityABC):
>>> query = 'graph trees computer'.split() # make a query
>>> sims = docsim_index[dictionary.doc2bow(query)] # calculate similarity of query to each doc from bow_corpus
Check out `Tutorial Notebook
<https://github.com/RaRe-Technologies/gensim/blob/develop/docs/notebooks/soft_cosine_tutorial.ipynb>`_
Check out `the Gallery <https://radimrehurek.com/gensim/auto_examples/tutorials/run_scm.html>`_
for more examples.
"""
Expand Down Expand Up @@ -993,9 +992,8 @@ def __str__(self):
class WmdSimilarity(interfaces.SimilarityABC):
"""Compute negative WMD similarity against a corpus of documents.
See :class:`~gensim.models.keyedvectors.KeyedVectors` for more information.
Also, tutorial `notebook
<https://github.com/RaRe-Technologies/gensim/blob/develop/docs/notebooks/WMD_tutorial.ipynb>`_ for more examples.
Check out `the Gallery <https://radimrehurek.com/gensim/auto_examples/tutorials/run_wmd.html>`_
for more examples.
When using this code, please consider citing the following papers:
Expand Down
3 changes: 1 addition & 2 deletions gensim/similarities/termsim.py
Original file line number Diff line number Diff line change
Expand Up @@ -423,8 +423,7 @@ class SparseTermSimilarityMatrix(SaveLoad):
>>>
>>> word_embeddings = cholesky(similarity_matrix.matrix).L() # obtain word embeddings from similarity matrix
Check out `Tutorial Notebook
<https://github.com/RaRe-Technologies/gensim/blob/develop/docs/notebooks/soft_cosine_tutorial.ipynb>`_
Check out `the Gallery <https://radimrehurek.com/gensim/auto_examples/tutorials/run_scm.html>`_
for more examples.
Parameters
Expand Down

0 comments on commit 57c1a23

Please sign in to comment.