/// import Stream from 'stream'; import { SchemaRetriever } from 'thingtalk'; import * as Tp from 'thingpedia'; import { ParameterProvider } from './replace_parameters'; import { SentenceExample } from '../parsers'; interface DatasetAugmenterOptions { locale: string; timezone: string; paramLocale: string; rng: () => number; debug: boolean; singleDeviceExpandFactor: number; quotedProbability: number; untypedStringProbability: number; maxSpanLength: number; syntheticExpandFactor: number; noQuoteExpandFactor: number; paraphrasingExpandFactor: number; includeQuotedExample: boolean; cleanParameters: boolean; requotable: boolean; includeEntityValue: boolean; samplingType: 'random' | 'uniform' | 'default'; subsetParamSet: [number, number]; numAttempts: number; } export default class DatasetAugmenter extends Stream.Transform { private _options; private _rng; private _includeQuotedExample; private _singledevice; private _paramReplacer; constructor(schemaRetriever: SchemaRetriever, constProvider: ParameterProvider, thingpediaClient: Tp.BaseClient, options: DatasetAugmenterOptions); private _process; _flush(callback: () => void): void; _transform(inex: SentenceExample, encoding: BufferEncoding, callback: (err?: Error | null) => void): void; } export {};