Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
22
function
tokenizeSentence(input) {
23
return
input.split(/\b/).map(t => t.trim()).filter(t => t.length !== 0);
24
}
25
26
function
loadCSV(path) {
27
return
dsv.csvParse(fs.readFileSync(path, {encoding:
'utf8'
}));
Callers
1
parseRecords
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected