From 3ccbb2e406cb65de25a53182718e19fc770ce8e9 Mon Sep 17 00:00:00 2001 From: Kento Nozawa Date: Mon, 27 Aug 2018 12:12:31 +0900 Subject: [PATCH] Fix quote of vocabulary from `gensim.models.Word2Vec` (#2161) --- gensim/models/word2vec.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gensim/models/word2vec.py b/gensim/models/word2vec.py index a84531b57c..ff8fe23199 100755 --- a/gensim/models/word2vec.py +++ b/gensim/models/word2vec.py @@ -617,7 +617,7 @@ class Word2Vec(BaseWordEmbeddingsModel): This object essentially contains the mapping between words and embeddings. After training, it can be used directly to query those embeddings in various ways. See the module level docstring for examples. - vocabulary : :class:'~gensim.models.word2vec.Word2VecVocab' + vocabulary : :class:`~gensim.models.word2vec.Word2VecVocab` This object represents the vocabulary (sometimes called Dictionary in gensim) of the model. Besides keeping track of all unique words, this object provides extra functionality, such as constructing a huffman tree (frequent words are closer to the root), or discarding extremely rare words.