Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const options = {
locale: args.locale,
thingpedia: './thingpedia.tt',
entities: './entities.json',
dataset: './dataset.tt',
flags: args.flags,
template: 'contextual.genie',
random_seed: 'almond is awesome',
maxDepth: args.maxdepth,
targetPruningSize: args.target_pruning_size,
debug: false, // no debugging, ever, because debugging also goes to stdout
};
inputFile
.pipe(Genie.parallelize(PARALLEL_GENERATION,
require.resolve('./workers/generate-contextual-worker.js'), options))
.pipe(new Genie.DatasetStringifier())
.pipe(process.stdout);
await StreamUtils.waitFinish(process.stdout);
process.disconnect();
}