Skip to content

Commit

Permalink
Update sentencepiece.js
Browse files Browse the repository at this point in the history
  • Loading branch information
lutzroeder committed Mar 31, 2024
1 parent a4c961a commit 66d40fe
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions source/sentencepiece.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ sentencepiece.ModelFactory = class {
const model = context.tags('pb+');
if (model &&
model['1'] && model['1']['1'] === 2 && model['1']['2'] === 5 && model['1']['3'] === 0 &&
model['2'] && model['2']['1'] === 2 && model['2']['2'] === 2 && model['2']['3'] === 0 &&
model['2']['4'] === 0 && model['2']['10'] === 5 &&
model['2'] && model['2']['3'] === 0 && model['2']['4'] === 0 && model['2']['10'] === 5 &&
model['2']['40'] === 0 && model['2']['41'] === 0 && model['2']['42'] === 0) {
context.type = 'sentencepiece';
}
Expand Down Expand Up @@ -95,4 +94,3 @@ sentencepiece.Error = class extends Error {
};

export const ModelFactory = sentencepiece.ModelFactory;

0 comments on commit 66d40fe

Please sign in to comment.