Skip to content

Commit

Permalink
Fixed oem 2 per #938 (#943)
Browse files Browse the repository at this point in the history
  • Loading branch information
Balearica committed Aug 24, 2024
1 parent d497668 commit 9143f1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/createWorker.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ module.exports = async (langs = 'eng', oem = OEM.LSTM_ONLY, _options = {}, confi
cachePath: options.cachePath,
cacheMethod: options.cacheMethod,
gzip: options.gzip,
lstmOnly: [OEM.LSTM_ONLY, OEM.TESSERACT_LSTM_COMBINED].includes(currentOem)
lstmOnly: [OEM.DEFAULT, OEM.LSTM_ONLY].includes(currentOem)
&& !options.legacyLang,
},
},
Expand Down

0 comments on commit 9143f1e

Please sign in to comment.