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

Function loadJSON

intent-classifier/training/util.js:30–32  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

28}
29
30function loadJSON(path) {
31 return JSON.parse(fs.readFileSync(path, {encoding: 'utf8'}));
32}
33
34function flatMap(array, func) {
35 const result = [];

Callers 3

runFunction · 0.85
runFunction · 0.85
runFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected