botbuilder-dialogs-adaptive
Version:
Rule system for the Microsoft BotBuilder dialog system.
41 lines • 1.18 kB
TypeScript
import { TextEntityRecognizer } from './textEntityRecognizer';
import { ModelResult } from 'botbuilder-dialogs';
/**
* @module botbuilder-dialogs-adaptive
*/
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/
export interface RegexEntityRecognizerConfiguration {
name?: string;
pattern?: string;
}
/**
* Matches input against a regular expression.
*/
export declare class RegexEntityRecognizer extends TextEntityRecognizer implements RegexEntityRecognizerConfiguration {
static $kind: string;
constructor();
name: string;
/**
* Gets the regular expression pattern value.
*
* @returns The pattern.
*/
get pattern(): string;
/**
* Sets the pattern.
*/
set pattern(value: string);
private _pattern;
/**
* @protected
* Match recognizing implementation.
* @param text Text to match.
* @param _culture Culture to use.
* @returns The matched [ModelResult](xref:botbuilder-dialogs.ModelResult) list.
*/
protected _recognize(text: string, _culture: string): ModelResult[];
}
//# sourceMappingURL=regexEntityRecognizer.d.ts.map