Skip to content

Commit

Permalink
README.md: minor improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
hauntsaninja committed Dec 16, 2022
1 parent 1f098ca commit ab3688a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
# ⏳ tiktoken

tiktoken is a fast tokeniser.
tiktoken is a fast [BPE](https://en.wikipedia.org/wiki/Byte_pair_encoding) tokeniser for use with
OpenAI's models.

```python
import tiktoken
enc = tiktoken.get_encoding("gpt2")
print(enc.encode("hello world"))
assert enc.decode(enc.encode("hello world")) == "hello world"
```

The open source version of `tiktoken` can be installed from PyPI:
Expand Down

0 comments on commit ab3688a

Please sign in to comment.