916e423a1654d87646fc522d8862a81c7a7cb4fc,gensim/models/fasttext.py,FastText,__getitem__,#FastText#Any#,537

Before Change


        >>> meow_vector = trained_model["hello"]  // get vector for word

        
        return self.word_vec(word)

    def get_vocab_word_vecs(self):
        Calculate vectors for words in vocabulary and stores them in `wv.syn0`.
        for w, v in self.wv.vocab.items():

After Change


        Deprecated. Use self.wv.__getitem__() instead.
        Refer to the documentation for `gensim.models.KeyedVectors.__getitem__`
        
        return self.wv.__getitem__(words)

    @deprecated("Method will be removed in 4.0.0, use self.wv.__contains__() instead")
    def __contains__(self, word):
        
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: RaRe-Technologies/gensim
Commit Name: 916e423a1654d87646fc522d8862a81c7a7cb4fc
Time: 2018-02-01
Author: manneshiva+github@gmail.com
File Name: gensim/models/fasttext.py
Class Name: FastText
Method Name: __getitem__


Project Name: prody/ProDy
Commit Name: 486dbc58ed00b645f2d561ede5a06e89b8d1ca78
Time: 2018-03-15
Author: shz66@pitt.edu
File Name: prody/atomic/chain.py
Class Name: Chain
Method Name: __getitem__


Project Name: scipy/scipy
Commit Name: f43c64c4fd913751764d324a1b85c895a051bced
Time: 2018-11-08
Author: perimosocordiae@gmail.com
File Name: scipy/sparse/csc.py
Class Name: csc_matrix
Method Name: __getitem__


Project Name: pantsbuild/pants
Commit Name: 725fdaf504237190f6787dda3d72c39010a4c574
Time: 2020-07-26
Author: john.sirois@gmail.com
File Name: src/python/pants/engine/collection.py
Class Name: Collection
Method Name: __getitem__