Skip to content

Commit

Permalink
tests fix
Browse files Browse the repository at this point in the history
  • Loading branch information
susnato committed Aug 10, 2023
1 parent 983d93d commit e03e9bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions keras_nlp/models/xlnet/xlnet_tokenizer_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ def setUp(self):
self.tokenizer = XLNetTokenizer(proto=self.proto)

def test_tokenize(self):
input_data = "the quick brown fox"
input_data = ["the quick brown fox"]
output = self.tokenizer(input_data)
self.assertAllEqual(output, [7, 12, 8, 10, 6, 5])
self.assertAllEqual(output, [[7, 12, 8, 10, 6, 5]])

def test_tokenize_batch(self):
input_data = ["the quick brown fox", "the earth is round"]
Expand Down

0 comments on commit e03e9bb

Please sign in to comment.