gpt-3-encoder
Advanced tools
Comparing version 1.0.3 to 1.0.4
@@ -64,7 +64,7 @@ // This file includes code which was modified from https://github.com/openai/gpt-2 | ||
const encoder = JSON.parse(fs.readFileSync('encoder.json')) | ||
const encoder = JSON.parse(fs.readFileSync('./encoder.json')) | ||
const decoder = {} | ||
Object.keys(encoder).map(x => { decoder[encoder[x]] = x }) | ||
const bpe_file = fs.readFileSync('vocab.bpe', 'utf-8') | ||
const bpe_file = fs.readFileSync('./vocab.bpe', 'utf-8') | ||
const lines = bpe_file.split('\n') | ||
@@ -71,0 +71,0 @@ |
{ | ||
"name": "gpt-3-encoder", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "Javascript BPE Encoder Decoder for GPT-2 / GPT-3", | ||
@@ -5,0 +5,0 @@ "main": "encoder.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1504521