node-cld
node-cld copied to clipboard
Language detection for Javascript (Node). Based on the CLD2 (Compact Language Detector) library from Google.
We are packaging our project with serverless, which uses Webpack. The packaging fails for `cld` with the following error: `ERROR in ../../cld/index.js 2:13-43 Module not found: Error: Can't resolve './build/Release/cld'...
An internal function of CLD2, [int GetLangScore(uint32 probs, uint8 pslang)](https://github.com/CLD2Owners/cld2/blob/b56fa78a2fe44ac2851bae5bf4f4693a0644da7b/internal/cldutil.cc#L141) let you get the score of a language by language probability. This is used in several points to calculate the...
Any plan to support the new neural network based [CLD-3](https://github.com/google/cld3)? Recently, I have proposed a build without the Chromium dependency (static library only), and it seems it work now: https://github.com/google/cld3/issues/23...
I know that short snippets are likely to fail the language detection, but I found it confusing that the snippet > Best practices was detected as `en` on windows, but...
The calling script declares `--max_old_space_size=8000`, so it's a OOM that happens internally. ``` 380732 ms: Mark-sweep 7855.8 (8034.6) -> 7855.8 (8034.6) MB, 5755.0 / 0.0 ms [allocation failure] [GC in...
Hello, Is it possibile adding the end offset of language in chunks model, like this? ` chunks: [ { name: 'ITALIAN', code: 'it', start: 0, end: 310, bytes: 170 },...
This happens with `"skipLibCheck": false`: ```sh > tsc --noEmit Error: ../../../node_modules/cld/index.d.ts(26,1): error TS2668: 'export' modifier cannot be applied to ambient modules and module augmentations since they are always visible. Error:...
When I run `npm install --save cld` on one of my projects I get the following error: ``` ❯ npm i --save cld npm ERR! code 1 npm ERR! path...
Might be related to https://github.com/dachev/node-cld/issues/67 But I am having some issues using cld in a Node project using `esbuild` and `Typescript`. ``` $ yarn run make ✘ [ERROR] Could not...
Creating errors is a fairly expensive operation in JavaScript (primarily due to stacktrace generation), and it is not really necessary for conveying the fact that language resolution was not successful....