microsoft-cognitiveservices-speech-sdk
Version:
Microsoft Cognitive Services Speech SDK for JavaScript
25 lines (24 loc) • 621 B
TypeScript
export interface IIntentResponse {
query?: string;
topScoringIntent?: ISingleIntent;
entities?: IIntentEntity[];
}
export interface IIntentEntity {
entity: string;
type: string;
startIndex: number;
endIndex: number;
score: number;
}
export interface ISingleIntent {
intent: string;
score: number;
}
export declare class IntentResponse implements IIntentResponse {
private privIntentResponse;
private constructor();
static fromJSON(json: string): IntentResponse;
get query(): string;
get topScoringIntent(): ISingleIntent;
get entities(): IIntentEntity[];
}