<commit_before>/*!
 * apiai
 * Copyright(c) 2015 http://api.ai/
 * Apache 2.0 Licensed
 */

'use strict';

// var apiai = require("../module/apiai");
var apiai = require("apiai");

var app = apiai("0eca2d2d94a8440885bd7cf4c2a92e93");

var options = {
    sessionId: '<UNIQE SESSION ID>',
    language: 'zh-CN'
};

var request = app.textRequest('什么叫发票', options);

request.on('response', function(response) {
    console.log(response);
});<commit_msg>remove api key from example<commit_after>/*!
 * apiai
 * Copyright(c) 2015 http://api.ai/
 * Apache 2.0 Licensed
 */

'use strict';

// var apiai = require("../module/apiai");
var apiai = require("apiai");

var app = apiai("YOUR_ACCESS_TOKEN");

var options = {
    sessionId: '<UNIQE SESSION ID>',
    language: 'zh-CN'
};

var request = app.textRequest('什么叫发票', options);

request.on('response', function(response) {
    console.log(response);
});
{'fraction_non_alphanumeric': 0.1846496106785317, 'fraction_numerical': 0.034482758620689655, 'mean_word_length': 4.084745762711864, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7036468', 'n_tokens_mistral': 356, 'n_tokens_neox': 344, 'n_words': 72}