UNPKG

lexica-dialog-core

Version:
16 lines 629 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const lodash_1 = require("lodash"); const immutable_1 = require("immutable"); class DefaultNlpService { async analyse(message, uni, intentMemoryFeatures) { const features = !lodash_1.isNil(intentMemoryFeatures) ? intentMemoryFeatures.toArray() : undefined; const commands = []; return immutable_1.List(commands.map((command) => ({ features: immutable_1.Map(command.features), name: command.name, }))); } } exports.default = DefaultNlpService; //# sourceMappingURL=DefaultNlpService.js.map