Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
constructor(settings = {}, container) {
super(
{
settings: {},
container: settings.container || container || containerBootstrap(),
},
container
);
this.applySettings(this.settings, settings);
if (!this.settings.tag) {
this.settings.tag = `nlp`;
}
this.registerDefault();
this.applySettings(
this.settings,
this.container.getConfiguration(this.settings.tag)
);
this.nluManager = this.container.get('nlu-manager', this.settings.nlu);
this.ner = this.container.get('ner', this.settings.ner);
this.nlgManager = this.container.get('nlg-manager', this.settings.nlg);
this.actionManager = this.container.get(
constructor(settings = {}, container) {
super(
{
settings: {},
container: settings.container || container || containerBootstrap(),
},
container
);
this.applySettings(this.settings, settings);
if (!this.settings.tag) {
this.settings.tag = 'console';
}
this.applySettings(
this.settings,
this.container.getConfiguration(this.settings.tag)
);
this.initialize();
}