Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
tm4roon authored Sep 5, 2019
1 parent 0b52642 commit d737947
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pytorch_transformers/tokenization_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ def eos_token_id(self):
return self.convert_tokens_to_ids(self._eos_token)

@property
def unk_token_is(self):
def unk_token_id(self):
""" Id of the unknown token in the vocabulary. Log an error if used while not having been set. """
if self._unk_token is None:
logger.error("Using unk_token, but it is not set yet.")
Expand Down

0 comments on commit d737947

Please sign in to comment.