Skip to main content
Products
Open Source
Deno
Modern runtime for JavaScript and TypeScript
Fresh
Web framework designed for the edge
JSR
TypeScript-first ESM package registry
Commercial
Deno for Enterprise
Enterprise support for runtime projects
Deploy
Easy serverless hosting for your JavaScript projects
Subhosting
Securely run untrusted code in a scalable sandbox
Docs
Manual
API Reference
Deno Deploy
Deno KV
Deno by Example
Modules
Current path
deno.land/x
Standard Library
Node.js & npm
JSR
Blog
Search…
⌘K
Module
x
/
gpt
/
encoder.ts
Deno(TypeScript) BPE Encoder Decoder for GPT-2 / GPT-3
optionsx/GPT3-Tokenizer
Version
1.6
v1.6
1.5
1.1
1.2
1.3
1.0
Go to Latest
Menu
mod.ts
(default module)
v
default
f
decode
f
encode
bpe-vocab.ts
v
default
encoder.ts
v
default
import
*
as
gpt
from
"https://deno.land/x/gpt@1.5/encoder.ts"
;
Variables
v
default