tinyld
v1.1.2 natural-language language detection classification nodejs
train
run-p train:*
train:normal
cross-env TINYLD_CONFIG=normal ts-node src/train.ts
train:light
cross-env TINYLD_CONFIG=light ts-node src/train.ts
dev
ts-node src/dev.ts
bench:cld
ts-node src/benchmark/cld.ts
bench:franc
ts-node src/benchmark/franc.ts
bench:languagedetect
ts-node src/benchmark/languagedetect.ts
bench:lingua
cross-env TINYLD_CONFIG=normal ts-node src/benchmark/lingua.ts
bench:tinyld
cross-env TINYLD_CONFIG=normal ts-node src/benchmark/tinyld.ts
bench:tinyld-light
cross-env TINYLD_CONFIG=light ts-node src/benchmark/tinyld_light.ts
build
run-p build:*
build:normal-node
esbuild src/index.ts --bundle --minify --platform=node --outfile=dist/tinyld.cjs.js
build:normal-web
esbuild src/index.ts --bundle --minify --platform=browser --format=esm --outfile=dist/tinyld.esm.js
build:light-node
esbuild src/index_light.ts --bundle --minify --platform=node --outfile=dist/tinyld.light.cjs.js
build:light-web
esbuild src/index_light.ts --bundle --minify --platform=browser --format=esm --outfile=dist/tinyld.light.esm.js
lint
eslint --ext .js,.ts --fix ./ && prettier --config .prettierrc --ignore-path .prettierignore --write "**/*.{ts,js,md}"
test
run-p test:*
test:unit
uvu tests
test:dependencies
yarn audit --level high || echo "Run 'yarn update' to interactively update dependencies for this project"
test:lint
eslint --ext .js,.ts ./ && prettier --config .prettierrc --ignore-path .prettierignore --check "**/*.{ts,js}"
test:types
tsc --noEmit
update
yarn upgrade-interactive
npm i [email protected]
Source Code
github.com/komodojp/tinyldMetadata
- MIT
- >= 12.22.1
- Kevin Destrem
- released 8/17/2021