Skip to content

Commit

Permalink
decompose long line here
Browse files Browse the repository at this point in the history
  • Loading branch information
karpathy committed Feb 18, 2024
1 parent bbf845d commit b52bf9b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_tokenizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
from minbpe import BasicTokenizer, RegexTokenizer, GPT4Tokenizer

# a few strings to test the tokenizers on
taylorswift_file = os.path.join(os.path.dirname(os.path.abspath(__file__)), "taylorswift.txt")
dirname = os.path.dirname(os.path.abspath(__file__))
taylorswift_file = os.path.join(dirname, "taylorswift.txt")
test_strings = [
"", # empty string
"?", # single character
Expand Down

0 comments on commit b52bf9b

Please sign in to comment.