Skip to content

Commit

Permalink
Merge pull request #268 from wangxiaodiu/master
Browse files Browse the repository at this point in the history
fixed a minor bug in README.md
  • Loading branch information
thomwolf authored Feb 13, 2019
2 parents cdcb206 + e1b3cfb commit 4e56da3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ text = "[CLS] Who was Jim Henson ? [SEP] Jim Henson was a puppeteer [SEP]"
tokenized_text = tokenizer.tokenize(text)

# Mask a token that we will try to predict back with `BertForMaskedLM`
masked_index = 6
masked_index = 8
tokenized_text[masked_index] = '[MASK]'
assert tokenized_text == ['[CLS]', 'who', 'was', 'jim', 'henson', '?', '[SEP]', 'jim', '[MASK]', 'was', 'a', 'puppet', '##eer', '[SEP]']

Expand Down

0 comments on commit 4e56da3

Please sign in to comment.