Skip to content

Commit

Permalink
Fix compatibility with bergamot-translator >= 0.4.2
Browse files Browse the repository at this point in the history
Oops this is what you get for depending on a local outdated build of bergamot-translator Jelmer…
  • Loading branch information
jelmervdl committed Mar 28, 2022
1 parent 3f9c576 commit 76b3782
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extension/controller/translation/WASMTranslationWorker.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ class WASMTranslationWorker {
console.debug('Model config:', YAML.stringify(modelConfig));

const key = JSON.stringify({from,to});
this.models.set(key, new Module.TranslationModel(YAML.stringify(modelConfig), modelMemory, shortlistMemory, vocabs));
this.models.set(key, new Module.TranslationModel(YAML.stringify(modelConfig), modelMemory, shortlistMemory, vocabs, null));
}

/**
Expand Down

0 comments on commit 76b3782

Please sign in to comment.