Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
Omie6541
· 3y ago · 0 comments
can we please have some good example input/outputs in the readme itself? what is the expected output of print(enc.encode("hello world")) ?
Comments
[–]
mnks
3y ago
Have a look at
https://beta.openai.com/tokenizer
which uses javascript reimplementation of the GPT-2 / GPT-3 BPE tokenizer. In this case it's [31373, 995].
[–]
stabbles
3y ago
https://github.com/openai/tiktoken/blob/main/tests/test_simp...