UNPKG

asposewordscloud

Version:
37 lines (36 loc) 1.24 kB
import { AttributeInfo } from '../internal/attributeInfo'; import { ClassificationResult } from './classificationResult'; import { WordsResponse } from './wordsResponse'; export declare const importsMapClassificationResponse: { ClassificationResult: typeof ClassificationResult; WordsResponse: typeof WordsResponse; }; /** * The REST response with data on multi-class text classification. * This response is returned by the Service when handling "PUT https://api.aspose.cloud/v4.0/words/classify" REST API requests. */ export declare class ClassificationResponse extends WordsResponse { /** * Attribute type map */ static attributeTypeMap: Array<AttributeInfo>; /** * Returns attribute type map */ static getAttributeTypeMap(): AttributeInfo[]; /** * Gets or sets the best class name. */ bestClassName: string; /** * Gets or sets the best class probability. */ bestClassProbability: number; /** * Gets or sets the array of best classes results. */ bestResults: Array<ClassificationResult>; constructor(init?: Partial<ClassificationResponse>); collectFilesContent(_resultFilesContent: Array<any>): void; validate(): void; }