Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
// #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())
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()));
}
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())));