MCPcopy Create free account
hub / github.com/tensorflow/tfjs-examples / tokenizeSentence

Function tokenizeSentence

intent-classifier/training/util.js:22–24  ·  view source on GitHub ↗
(input)

Source from the content-addressed store, hash-verified

20
21
22function tokenizeSentence(input) {
23 return input.split(/\b/).map(t => t.trim()).filter(t => t.length !== 0);
24}
25
26function loadCSV(path) {
27 return dsv.csvParse(fs.readFileSync(path, {encoding: 'utf8'}));

Callers 1

parseRecordsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected