Skip to content

Commit

Permalink
Minor improvements in README
Browse files Browse the repository at this point in the history
  • Loading branch information
kafkas committed Oct 31, 2020
1 parent f74eecb commit 3e88315
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
GPT-3-Encoder
# GPT-3-Encoder
Javascript BPE Encoder Decoder for GPT-2 / GPT-3

## About
GPT-2 and GPT-3 use byte pair encoding to turn text into a series of integers to feed into the model. This is a javascript implementation of OpenAI's original python encoder/decoder which can be found [here](https://github.com/openai/gpt-2)

## Install with npm

`npm install gpt-3-encoder`
```
npm install gpt-3-encoder
```

## Usage

Compatible with Node >= 12

```
```js
const {encode, decode} = require('gpt-3-encoder')

const str = 'This is an example sentence to try encoding out on!'
Expand Down

0 comments on commit 3e88315

Please sign in to comment.