juicy-chat-bot
Version:
A light-weight and totally "secure" library to easily deploy simple chat bots
13 lines (12 loc) • 541 B
TypeScript
import { SentimentAnalyzer as SentimentAnalyzerBase } from '@nlpjs/sentiment';
type SentimentAnalyzerSettings = Record<string, any>;
interface Container {
use: (module: any) => void;
[key: string]: any;
}
type GetSentimentSettings = Record<string, any>;
declare class SentimentAnalyzer extends SentimentAnalyzerBase {
constructor(settings?: SentimentAnalyzerSettings, container?: Container);
getSentiment(utterance: string, locale?: string, settings?: GetSentimentSettings): Promise<any>;
}
export default SentimentAnalyzer;