Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
// #region German
this.registerModel("BooleanModel", Culture.German, (options) => new BooleanModel(
new BooleanParser(),
new BooleanExtractor(new GermanBooleanExtractorConfiguration())
));
// #endregion
// #region Japanese
this.registerModel("BooleanModel", Culture.Japanese, (options) => new BooleanModel(
new BooleanParser(),
new BooleanExtractor(new JapaneseBooleanExtractorConfiguration())
));
// #endregion
// #region Portuguese
this.registerModel("BooleanModel", Culture.Portuguese, (options) => new BooleanModel(
new BooleanParser(),
new BooleanExtractor(new PortugueseBooleanExtractorConfiguration())
));
// #endregion
// #region Spanish
this.registerModel("BooleanModel", Culture.Spanish, (options) => new BooleanModel(
new BooleanParser(),
new BooleanExtractor(new SpanishBooleanExtractorConfiguration())
));
// #endregion
}
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())));
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(),