How to use the @microsoft/recognizers-text.Culture.English function in @microsoft/recognizers-text

To help you get started, we’ve selected a few @microsoft/recognizers-text examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github microsoft / Recognizers-Text / JavaScript / packages / recognizers-choice / src / choice / choiceRecognizer.ts View on Github external
// #region Chinese
        this.registerModel("BooleanModel", Culture.Chinese, (options) => new BooleanModel(
            new BooleanParser(),
            new BooleanExtractor(new ChineseBooleanExtractorConfiguration())
        ));
        // #endregion

        // #region Dutch
        this.registerModel("BooleanModel", Culture.Dutch, (options) => new BooleanModel(
            new BooleanParser(),
            new BooleanExtractor(new DutchBooleanExtractorConfiguration())
        ));
        // #endregion

        // #region English
        this.registerModel("BooleanModel", Culture.English, (options) => new BooleanModel(
            new BooleanParser(),
            new BooleanExtractor(new EnglishBooleanExtractorConfiguration())
        ));
        // #endregion

        // #region French
        this.registerModel("BooleanModel", Culture.French, (options) => new BooleanModel(
            new BooleanParser(),
            new BooleanExtractor(new FrenchBooleanExtractorConfiguration())
        ));
        // #endregion

        // #region German
        this.registerModel("BooleanModel", Culture.German, (options) => new BooleanModel(
            new BooleanParser(),
            new BooleanExtractor(new GermanBooleanExtractorConfiguration())
github microsoft / Recognizers-Text / JavaScript / packages / recognizers-sequence / src / sequence / sequenceRecognizer.ts View on Github external
this.registerModel("PhoneNumberModel", Culture.Chinese, (options) => new PhoneNumberModel(
            new PhoneNumberParser(),
            new BasePhoneNumberExtractor(new ChinesePhoneNumberExtractorConfiguration())));
        this.registerModel("PhoneNumberModel", Culture.Portuguese, (options) => new PhoneNumberModel(
            new PhoneNumberParser(),
            new BasePhoneNumberExtractor(new PortuguesePhoneNumberExtractorConfiguration())));

        this.registerModel("IpAddressModel", Culture.English, (options) => new IpAddressModel(
            new IpParser(),
            new BaseIpExtractor(new EnglishIpExtractorConfiguration())));
        this.registerModel("IpAddressModel", Culture.Chinese, (options) => new IpAddressModel(
            new IpParser(),
            new BaseIpExtractor(new ChineseIpExtractorConfiguration())));

        this.registerModel("MentionModel", Culture.English, (options) => new MentionModel(new MentionParser(), new MentionExtractor()));
        this.registerModel("HashtagModel", Culture.English, (options) => new HashtagModel(new HashtagParser(), new HashtagExtractor()));
        this.registerModel("EmailModel", Culture.English, (options) => new EmailModel(new EmailParser(), new EmailExtractor()));

        this.registerModel("URLModel", Culture.English, (options) => new URLModel(
            new URLParser(),
            new BaseURLExtractor(new EnglishURLExtractorConfiguration())));
        this.registerModel("URLModel", Culture.Chinese, (options) => new URLModel(
            new URLParser(),
            new BaseURLExtractor(new ChineseURLExtractorConfiguration())));

        this.registerModel("GUIDModel", Culture.English, (options) => new GUIDModel(new GUIDParser(), new GUIDExtractor()));
    }
github microsoft / Recognizers-Text / JavaScript / packages / recognizers-sequence / src / sequence / sequenceRecognizer.ts View on Github external
protected InitializeConfiguration() {
        this.registerModel("PhoneNumberModel", Culture.English, (options) => new PhoneNumberModel(
            new PhoneNumberParser(),
            new BasePhoneNumberExtractor(new EnglishPhoneNumberExtractorConfiguration())));
        this.registerModel("PhoneNumberModel", Culture.Chinese, (options) => new PhoneNumberModel(
            new PhoneNumberParser(),
            new BasePhoneNumberExtractor(new ChinesePhoneNumberExtractorConfiguration())));
        this.registerModel("PhoneNumberModel", Culture.Portuguese, (options) => new PhoneNumberModel(
            new PhoneNumberParser(),
            new BasePhoneNumberExtractor(new PortuguesePhoneNumberExtractorConfiguration())));

        this.registerModel("IpAddressModel", Culture.English, (options) => new IpAddressModel(
            new IpParser(),
            new BaseIpExtractor(new EnglishIpExtractorConfiguration())));
        this.registerModel("IpAddressModel", Culture.Chinese, (options) => new IpAddressModel(
            new IpParser(),
            new BaseIpExtractor(new ChineseIpExtractorConfiguration())));