function parseRecords(data) {
  const result = [];
  const intentStr = Object.keys(data)[0];
  const entries = data[intentStr];
  entries.forEach(entry => {
    const data = entry.data;
    const queryText = data.reduce((memo, curr) => {
      return memo.concat(curr.text);
    }, '');

    result.push({
      query: queryText,
      intent: intentStr,
    });
  });

  return result;
}
Reads the original data files from Snips/NLU and converts them to a simpler
CSV format.