Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions tests/bert_japanese/test_tokenization_bert_japanese.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ def test_mecab_tokenizer_no_normalize(self):
)

def test_wordpiece_tokenizer(self):
vocab_tokens = ["[UNK]", "[CLS]", "[SEP]", "こんにちは", "こん", "にちは" "ばんは", "##こん", "##にちは", "##ばんは"]
vocab_tokens = ["[UNK]", "[CLS]", "[SEP]", "こんにちは", "こん", "にちは", "ばんは", "##こん", "##にちは", "##ばんは"]

vocab = {}
for (i, token) in enumerate(vocab_tokens):
Expand Down Expand Up @@ -246,7 +246,7 @@ def test_full_tokenizer(self):
)

def test_character_tokenizer(self):
vocab_tokens = ["[UNK]", "[CLS]", "[SEP]", "こ", "ん", "に", "ち", "は", "ば", "世", "界" "、", "。"]
vocab_tokens = ["[UNK]", "[CLS]", "[SEP]", "こ", "ん", "に", "ち", "は", "ば", "世", "界", "、", "。"]

vocab = {}
for (i, token) in enumerate(vocab_tokens):
Expand Down