UNPKG

clwoz-models

Version:
58 lines (57 loc) 2.7 kB
/** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ import { MemoryValue } from './Memory'; import { FilledEntity } from './FilledEntity'; import { ScoreInput, ScoreResponse, ScoredAction, UnscoredAction, ScoredBase } from './Score'; import { LabeledEntity } from './Entity'; import { Metrics } from './Metrics'; import { TrainDialog, TrainScorerStep, TextVariation, TrainExtractorStep, TrainRound } from './TrainDialog'; import { LogDialog, LogScorerStep, LogExtractorStep, LogRound } from './LogDialog'; import { ExtractResponse } from './Extract'; export declare namespace MockData { function makeEntityValues(): MemoryValue[]; function makeFilledEntity(entityId?: string): FilledEntity; function makeScoreInput(entityIds?: string[]): ScoreInput; function makeTrainScorerStep(labelAction?: string, filledEntityIds?: string[]): TrainScorerStep; function makeMetrics(): Metrics; function makeScoreBase(): ScoredBase; function makeUnscoredAction(): UnscoredAction; function makeUnscoredActions(): UnscoredAction[]; function makeScoredAction(): ScoredAction; function makeScoredActions(): ScoredAction[]; function makeScoreResponse(): ScoreResponse; function makeLogScorerStep(predictedAction?: string, filledEntityIds?: string[]): LogScorerStep; function makeTrainScorerSteps(scorerSteps?: { [labelAction: string]: string[] | undefined; }): TrainScorerStep[]; function makeLogScorerSteps(scorerSteps?: { [labelAction: string]: string[] | undefined; }): LogScorerStep[]; function makeLabelEntity(entityId?: string, entityValue?: string): LabeledEntity; function makeLabelEntities(entities?: { [id: string]: string; }): LabeledEntity[]; function makeTextVariation(entities?: { [id: string]: string; }): TextVariation; function makeTrainExtractorStep(textVariations?: { [id: string]: string; }[]): TrainExtractorStep; function makeExtractResponse(): ExtractResponse; function makeLogExtractorStep(): LogExtractorStep; function makeTrainRound(roundData: RoundData): TrainRound; function makeLogRound(roundData: RoundData): LogRound; interface RoundData { textVariations?: { [id: string]: string; }[]; scorerSteps?: { [labelAction: string]: string[] | undefined; }; } function makeLogDialog(rounds?: RoundData[], id?: string): LogDialog; function makeTrainDialog(rounds?: RoundData[], id?: string): TrainDialog; function randomInt(min: number, max: number): number; }