Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

Commit

Permalink
Refactor method name to be more clear
Browse files Browse the repository at this point in the history
  • Loading branch information
floscha committed Apr 26, 2018
1 parent a28b430 commit 5589edf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torchnlp/word_to_vector/pretrained_word_vectors.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def __init__(self,
def __contains__(self, token):
return token in self.stoi

def _get_token(self, token):
def _get_token_vector(self, token):
"""Return embedding for token or for UNK if token not in vocabulary"""
if token in self.stoi:
return self.vectors[self.stoi[token]]
Expand Down

0 comments on commit 5589edf

Please sign in to comment.