treebank-tokenizer
Version:
NLTK TreebankTokenizer Ported from Python to JS
17 lines (14 loc) • 367 B
JavaScript
const esbuild = require("esbuild");
const { nodeExternalsPlugin } = require("esbuild-node-externals");
esbuild
.build({
entryPoints: ["./src/index.ts"],
outfile: "lib/index.js",
bundle: true,
minify: true,
platform: "node",
sourcemap: true,
target: "node14",
plugins: [nodeExternalsPlugin()],
})
.catch(() => process.exit(1));