Fixed oem 2 per #938 (#943)

master
Balearica 1 month ago committed by GitHub
parent d4976685e7
commit 9143f1e56e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      src/createWorker.js

@ -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,
},
},

Loading…
Cancel
Save