@voice-ping/cognitive-services-speech
Version:
VoicePing Cognitive Services Speech SDK for JavaScript forked from Microsoft
25 lines (24 loc) • 618 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[];
}