public PortugueseMergedExtractorConfiguration(IDateTimeOptionsConfiguration config) : base(config) { DateExtractor = new BaseDateExtractor(new PortugueseDateExtractorConfiguration(this)); TimeExtractor = new BaseTimeExtractor(new PortugueseTimeExtractorConfiguration(this)); DateTimeExtractor = new BaseDateTimeExtractor(new PortugueseDateTimeExtractorConfiguration(this)); DatePeriodExtractor = new BaseDatePeriodExtractor(new PortugueseDatePeriodExtractorConfiguration(this)); TimePeriodExtractor = new BaseTimePeriodExtractor(new PortugueseTimePeriodExtractorConfiguration(this)); DateTimePeriodExtractor = new BaseDateTimePeriodExtractor(new PortugueseDateTimePeriodExtractorConfiguration(this)); DurationExtractor = new BaseDurationExtractor(new PortugueseDurationExtractorConfiguration(this)); SetExtractor = new BaseSetExtractor(new PortugueseSetExtractorConfiguration(this)); HolidayExtractor = new BaseHolidayExtractor(new PortugueseHolidayExtractorConfiguration(this)); TimeZoneExtractor = new BaseTimeZoneExtractor(new PortugueseTimeZoneExtractorConfiguration(this)); DateTimeAltExtractor = new BaseDateTimeAltExtractor(new PortugueseDateTimeAltExtractorConfiguration(this)); var numOptions = NumberOptions.None; if ((config.Options & DateTimeOptions.NoProtoCache) != 0) { numOptions = NumberOptions.NoProtoCache; } var numConfig = new BaseNumberOptionsConfiguration(config.Culture, numOptions); IntegerExtractor = Number.Portuguese.IntegerExtractor.GetInstance(numConfig); }
public SpanishCommonDateTimeParserConfiguration(DateTimeOptions options) : base(options) { UtilityConfiguration = new SpanishDatetimeUtilityConfiguration(); UnitMap = DateTimeDefinitions.UnitMap.ToImmutableDictionary(); UnitValueMap = DateTimeDefinitions.UnitValueMap.ToImmutableDictionary(); SeasonMap = DateTimeDefinitions.SeasonMap.ToImmutableDictionary(); CardinalMap = DateTimeDefinitions.CardinalMap.ToImmutableDictionary(); DayOfWeek = DateTimeDefinitions.DayOfWeek.ToImmutableDictionary(); MonthOfYear = DateTimeDefinitions.MonthOfYear.ToImmutableDictionary(); Numbers = DateTimeDefinitions.Numbers.ToImmutableDictionary(); DoubleNumbers = DateTimeDefinitions.DoubleNumbers.ToImmutableDictionary(); CardinalExtractor = Number.Spanish.CardinalExtractor.GetInstance(); IntegerExtractor = new IntegerExtractor(); OrdinalExtractor = new OrdinalExtractor(); NumberParser = new BaseNumberParser(new SpanishNumberParserConfiguration()); DateExtractor = new BaseDateExtractor(new SpanishDateExtractorConfiguration()); TimeExtractor = new BaseTimeExtractor(new SpanishTimeExtractorConfiguration()); DateTimeExtractor = new BaseDateTimeExtractor(new SpanishDateTimeExtractorConfiguration()); DurationExtractor = new BaseDurationExtractor(new SpanishDurationExtractorConfiguration()); DatePeriodExtractor = new BaseDatePeriodExtractor(new SpanishDatePeriodExtractorConfiguration()); TimePeriodExtractor = new BaseTimePeriodExtractor(new SpanishTimePeriodExtractorConfiguration()); DateTimePeriodExtractor = new BaseDateTimePeriodExtractor(new SpanishDateTimePeriodExtractorConfiguration()); DateParser = new BaseDateParser(new SpanishDateParserConfiguration(this)); TimeParser = new BaseTimeParser(new SpanishTimeParserConfiguration(this)); DateTimeParser = new BaseDateTimeParser(new SpanishDateTimeParserConfiguration(this)); DurationParser = new BaseDurationParser(new SpanishDurationParserConfiguration(this)); DatePeriodParser = new BaseDatePeriodParser(new SpanishDatePeriodParserConfiguration(this)); TimePeriodParser = new BaseTimePeriodParser(new SpanishTimePeriodParserConfiguration(this)); DateTimePeriodParser = new BaseDateTimePeriodParser(new SpanishDateTimePeriodParserConfiguration(this)); }
public FrenchCommonDateTimeParserConfiguration() { UtilityConfiguration = new FrenchDatetimeUtilityConfiguration(); UnitMap = DateTimeDefinitions.UnitMap.ToImmutableDictionary(); UnitValueMap = DateTimeDefinitions.UnitValueMap.ToImmutableDictionary(); SeasonMap = DateTimeDefinitions.SeasonMap.ToImmutableDictionary(); CardinalMap = DateTimeDefinitions.CardinalMap.ToImmutableDictionary(); DayOfWeek = DateTimeDefinitions.DayOfWeek.ToImmutableDictionary(); MonthOfYear = DateTimeDefinitions.MonthOfYear.ToImmutableDictionary(); Numbers = DateTimeDefinitions.Numbers.ToImmutableDictionary(); DoubleNumbers = DateTimeDefinitions.DoubleNumbers.ToImmutableDictionary(); CardinalExtractor = new CardinalExtractor(); IntegerExtractor = new IntegerExtractor(); OrdinalExtractor = new OrdinalExtractor(); NumberParser = new BaseNumberParser(new FrenchNumberParserConfiguration()); DateExtractor = new BaseDateExtractor(new FrenchDateExtractorConfiguration()); TimeExtractor = new BaseTimeExtractor(new FrenchTimeExtractorConfiguration()); DateTimeExtractor = new BaseDateTimeExtractor(new FrenchDateTimeExtractorConfiguration()); DurationExtractor = new BaseDurationExtractor(new FrenchDurationExtractorConfiguration()); DatePeriodExtractor = new BaseDatePeriodExtractor(new FrenchDatePeriodExtractorConfiguration()); TimePeriodExtractor = new BaseTimePeriodExtractor(new FrenchTimePeriodExtractorConfiguration()); DateTimePeriodExtractor = new BaseDateTimePeriodExtractor(new FrenchDateTimePeriodExtractorConfiguration()); DateParser = new BaseDateParser(new FrenchDateParserConfiguration(this)); TimeParser = new BaseTimeParser(new FrenchTimeParserConfiguration(this)); DateTimeParser = new BaseDateTimeParser(new FrenchDateTimeParserConfiguration(this)); DurationParser = new BaseDurationParser(new FrenchDurationParserConfiguration(this)); DatePeriodParser = new BaseDatePeriodParser(new FrenchDatePeriodParserConfiguration(this)); TimePeriodParser = new BaseTimePeriodParser(new FrenchTimePeriodParserConfiguration(this)); DateTimePeriodParser = new BaseDateTimePeriodParser(new FrenchDateTimePeriodParserConfiguration(this)); }
public PortugueseCommonDateTimeParserConfiguration(IOptionsConfiguration config) : base(config) { UtilityConfiguration = new PortugueseDatetimeUtilityConfiguration(); UnitMap = DateTimeDefinitions.UnitMap.ToImmutableDictionary(); UnitValueMap = DateTimeDefinitions.UnitValueMap.ToImmutableDictionary(); SeasonMap = DateTimeDefinitions.SeasonMap.ToImmutableDictionary(); CardinalMap = DateTimeDefinitions.CardinalMap.ToImmutableDictionary(); DayOfWeek = DateTimeDefinitions.DayOfWeek.ToImmutableDictionary(); MonthOfYear = DateTimeDefinitions.MonthOfYear.ToImmutableDictionary(); Numbers = DateTimeDefinitions.Numbers.ToImmutableDictionary(); DoubleNumbers = DateTimeDefinitions.DoubleNumbers.ToImmutableDictionary(); WrittenDecades = DateTimeDefinitions.WrittenDecades.ToImmutableDictionary(); SpecialDecadeCases = DateTimeDefinitions.SpecialDecadeCases.ToImmutableDictionary(); CardinalExtractor = Number.Portuguese.CardinalExtractor.GetInstance(); IntegerExtractor = new IntegerExtractor(); OrdinalExtractor = new OrdinalExtractor(); NumberParser = new BaseNumberParser(new PortugueseNumberParserConfiguration()); DateExtractor = new BaseDateExtractor(new PortugueseDateExtractorConfiguration(this)); TimeExtractor = new BaseTimeExtractor(new PortugueseTimeExtractorConfiguration(this)); DateTimeExtractor = new BaseDateTimeExtractor(new PortugueseDateTimeExtractorConfiguration(this)); DurationExtractor = new BaseDurationExtractor(new PortugueseDurationExtractorConfiguration(this)); DatePeriodExtractor = new BaseDatePeriodExtractor(new PortugueseDatePeriodExtractorConfiguration(this)); TimePeriodExtractor = new BaseTimePeriodExtractor(new PortugueseTimePeriodExtractorConfiguration(this)); DateTimePeriodExtractor = new BaseDateTimePeriodExtractor(new PortugueseDateTimePeriodExtractorConfiguration(this)); DateParser = new BaseDateParser(new PortugueseDateParserConfiguration(this)); TimeParser = new BaseTimeParser(new PortugueseTimeParserConfiguration(this)); DateTimeParser = new BaseDateTimeParser(new PortugueseDateTimeParserConfiguration(this)); DurationParser = new BaseDurationParser(new PortugueseDurationParserConfiguration(this)); DatePeriodParser = new BaseDatePeriodParser(new PortugueseDatePeriodParserConfiguration(this)); TimePeriodParser = new BaseTimePeriodParser(new PortugueseTimePeriodParserConfiguration(this)); DateTimePeriodParser = new BaseDateTimePeriodParser(new PortugueseDateTimePeriodParserConfiguration(this)); }
public EnglishMergedExtractorConfiguration(IOptionsConfiguration config) : base(config) { DateExtractor = new BaseDateExtractor(new EnglishDateExtractorConfiguration(this)); TimeExtractor = new BaseTimeExtractor(new EnglishTimeExtractorConfiguration(this)); DateTimeExtractor = new BaseDateTimeExtractor(new EnglishDateTimeExtractorConfiguration(this)); DatePeriodExtractor = new BaseDatePeriodExtractor(new EnglishDatePeriodExtractorConfiguration(this)); TimePeriodExtractor = new BaseTimePeriodExtractor(new EnglishTimePeriodExtractorConfiguration(this)); DateTimePeriodExtractor = new BaseDateTimePeriodExtractor(new EnglishDateTimePeriodExtractorConfiguration(this)); DurationExtractor = new BaseDurationExtractor(new EnglishDurationExtractorConfiguration(this)); SetExtractor = new BaseSetExtractor(new EnglishSetExtractorConfiguration(this)); HolidayExtractor = new BaseHolidayExtractor(new EnglishHolidayExtractorConfiguration(this)); TimeZoneExtractor = new BaseTimeZoneExtractor(new EnglishTimeZoneExtractorConfiguration(this)); DateTimeAltExtractor = new BaseDateTimeAltExtractor(new EnglishDateTimeAltExtractorConfiguration(this)); IntegerExtractor = Number.English.IntegerExtractor.GetInstance(); if ((Options & DateTimeOptions.EnablePreview) != 0) { SuperfluousWordMatcher.Init(DateTimeDefinitions.SuperfluousWordList); } var ambiguityFiltersDict = new Dictionary <Regex, Regex>(); foreach (var item in DateTimeDefinitions.AmbiguityFiltersDict) { ambiguityFiltersDict.Add(new Regex(item.Key, RegexOptions.IgnoreCase | RegexOptions.Singleline), new Regex(item.Value, RegexOptions.IgnoreCase | RegexOptions.Singleline)); } AmbiguityFiltersDict = ambiguityFiltersDict; }
public SpanishCommonDateTimeParserConfiguration() { UnitMap = InitUnitMap(); UnitValueMap = InitUnitValueMap(); SeasonMap = InitSeasonMap(); CardinalMap = InitCardinalMap(); DayOfWeek = InitDayOfWeek(); MonthOfYear = InitMonthOfYear(); Numbers = InitNumbers(); DoubleNumbers = InitDoubleNumbers(); CardinalExtractor = new CardinalExtractor(); IntegerExtractor = new IntegerExtractor(); OrdinalExtractor = new OrdinalExtractor(); NumberParser = new BaseNumberParser(new SpanishNumberParserConfiguration()); DateExtractor = new BaseDateExtractor(new SpanishDateExtractorConfiguration()); TimeExtractor = new BaseTimeExtractor(new SpanishTimeExtractorConfiguration()); DateTimeExtractor = new BaseDateTimeExtractor(new SpanishDateTimeExtractorConfiguration()); DurationExtractor = new BaseDurationExtractor(new SpanishDurationExtractorConfiguration()); DatePeriodExtractor = new BaseDatePeriodExtractor(new SpanishDatePeriodExtractorConfiguration()); TimePeriodExtractor = new BaseTimePeriodExtractor(new SpanishTimePeriodExtractorConfiguration()); DateTimePeriodExtractor = new BaseDateTimePeriodExtractor(new SpanishDateTimePeriodExtractorConfiguration()); DateParser = new BaseDateParser(new SpanishDateParserConfiguration(this)); TimeParser = new BaseTimeParser(new SpanishTimeParserConfiguration(this)); DateTimeParser = new BaseDateTimeParser(new SpanishDateTimeParserConfiguration(this)); DurationParser = new BaseDurationParser(new SpanishDurationParserConfiguration(this)); UtilityConfiguration = new SpanishDatetimeUtilityConfiguration(); DatePeriodParser = new BaseDatePeriodParser(new SpanishDatePeriodParserConfiguration(this)); TimePeriodParser = new BaseTimePeriodParser(new SpanishTimePeriodParserConfiguration(this)); DateTimePeriodParser = new BaseDateTimePeriodParser(new SpanishDateTimePeriodParserConfiguration(this)); }
public DutchMergedExtractorConfiguration(IDateTimeOptionsConfiguration config) : base(config) { DateExtractor = new BaseDateExtractor(new DutchDateExtractorConfiguration(this)); TimeExtractor = new BaseTimeExtractor(new DutchTimeExtractorConfiguration(this)); DateTimeExtractor = new BaseDateTimeExtractor(new DutchDateTimeExtractorConfiguration(this)); DatePeriodExtractor = new BaseDatePeriodExtractor(new DutchDatePeriodExtractorConfiguration(this)); TimePeriodExtractor = new BaseTimePeriodExtractor(new DutchTimePeriodExtractorConfiguration(this)); DateTimePeriodExtractor = new BaseDateTimePeriodExtractor(new DutchDateTimePeriodExtractorConfiguration(this)); DurationExtractor = new BaseDurationExtractor(new DutchDurationExtractorConfiguration(this)); SetExtractor = new BaseSetExtractor(new DutchSetExtractorConfiguration(this)); HolidayExtractor = new BaseHolidayExtractor(new DutchHolidayExtractorConfiguration(this)); TimeZoneExtractor = new BaseTimeZoneExtractor(new DutchTimeZoneExtractorConfiguration(this)); DateTimeAltExtractor = new BaseDateTimeAltExtractor(new DutchDateTimeAltExtractorConfiguration(this)); var numOptions = NumberOptions.None; if ((config.Options & DateTimeOptions.NoProtoCache) != 0) { numOptions = NumberOptions.NoProtoCache; } var numConfig = new BaseNumberOptionsConfiguration(config.Culture, numOptions); IntegerExtractor = Number.Dutch.IntegerExtractor.GetInstance(numConfig); AmbiguityFiltersDict = DefinitionLoader.LoadAmbiguityFilters(DateTimeDefinitions.AmbiguityFiltersDict); if ((Options & DateTimeOptions.EnablePreview) != 0) { SuperfluousWordMatcher.Init(DateTimeDefinitions.SuperfluousWordList); } }
public SpanishMergedExtractorConfiguration(IDateTimeOptionsConfiguration config) : base(config) { DateExtractor = new BaseDateExtractor(new SpanishDateExtractorConfiguration(this)); TimeExtractor = new BaseTimeExtractor(new SpanishTimeExtractorConfiguration(this)); DateTimeExtractor = new BaseDateTimeExtractor(new SpanishDateTimeExtractorConfiguration(this)); DatePeriodExtractor = new BaseDatePeriodExtractor(new SpanishDatePeriodExtractorConfiguration(this)); TimePeriodExtractor = new BaseTimePeriodExtractor(new SpanishTimePeriodExtractorConfiguration(this)); DateTimePeriodExtractor = new BaseDateTimePeriodExtractor(new SpanishDateTimePeriodExtractorConfiguration(this)); DurationExtractor = new BaseDurationExtractor(new SpanishDurationExtractorConfiguration(this)); SetExtractor = new BaseSetExtractor(new SpanishSetExtractorConfiguration(this)); DateTimeAltExtractor = new BaseDateTimeAltExtractor(new SpanishDateTimeAltExtractorConfiguration(this)); HolidayExtractor = new BaseHolidayExtractor(new SpanishHolidayExtractorConfiguration(this)); TimeZoneExtractor = new BaseTimeZoneExtractor(new SpanishTimeZoneExtractorConfiguration(this)); var numOptions = NumberOptions.None; if ((config.Options & DateTimeOptions.NoProtoCache) != 0) { numOptions = NumberOptions.NoProtoCache; } var numConfig = new BaseNumberOptionsConfiguration(config.Culture, numOptions); IntegerExtractor = Number.Spanish.IntegerExtractor.GetInstance(numConfig); AmbiguityFiltersDict = DefinitionLoader.LoadAmbiguityFilters(DateTimeDefinitions.AmbiguityFiltersDict); }
public PortugueseSetExtractorConfiguration() : base(DateTimeOptions.None) { DurationExtractor = new BaseDurationExtractor(new PortugueseDurationExtractorConfiguration()); TimeExtractor = new BaseTimeExtractor(new PortugueseTimeExtractorConfiguration()); DateExtractor = new BaseDateExtractor(new PortugueseDateExtractorConfiguration()); DateTimeExtractor = new BaseDateTimeExtractor(new PortugueseDateTimeExtractorConfiguration()); DatePeriodExtractor = new BaseDatePeriodExtractor(new PortugueseDatePeriodExtractorConfiguration()); TimePeriodExtractor = new BaseTimePeriodExtractor(new PortugueseTimePeriodExtractorConfiguration()); DateTimePeriodExtractor = new BaseDateTimePeriodExtractor(new PortugueseDateTimePeriodExtractorConfiguration()); }
public GermanSetExtractorConfiguration(IOptionsConfiguration config) : base(config) { DurationExtractor = new BaseDurationExtractor(new GermanDurationExtractorConfiguration(this)); TimeExtractor = new BaseTimeExtractor(new GermanTimeExtractorConfiguration(this)); DateExtractor = new BaseDateExtractor(new GermanDateExtractorConfiguration(this)); DateTimeExtractor = new BaseDateTimeExtractor(new GermanDateTimeExtractorConfiguration(this)); DatePeriodExtractor = new BaseDatePeriodExtractor(new GermanDatePeriodExtractorConfiguration(this)); TimePeriodExtractor = new BaseTimePeriodExtractor(new GermanTimePeriodExtractorConfiguration(this)); DateTimePeriodExtractor = new BaseDateTimePeriodExtractor(new GermanDateTimePeriodExtractorConfiguration(this)); }
public ItalianSetExtractorConfiguration() : base(DateTimeOptions.None) { DurationExtractor = new BaseDurationExtractor(new ItalianDurationExtractorConfiguration()); TimeExtractor = new BaseTimeExtractor(new ItalianTimeExtractorConfiguration()); DateExtractor = new BaseDateExtractor(new ItalianDateExtractorConfiguration()); DateTimeExtractor = new BaseDateTimeExtractor(new ItalianDateTimeExtractorConfiguration()); DatePeriodExtractor = new BaseDatePeriodExtractor(new ItalianDatePeriodExtractorConfiguration()); TimePeriodExtractor = new BaseTimePeriodExtractor(new ItalianTimePeriodExtractorConfiguration()); DateTimePeriodExtractor = new BaseDateTimePeriodExtractor(new ItalianDateTimePeriodExtractorConfiguration()); }
public EnglishSetExtractorConfiguration() { DurationExtractor = new BaseDurationExtractor(new EnglishDurationExtractorConfiguration()); TimeExtractor = new BaseTimeExtractor(new EnglishTimeExtractorConfiguration()); DateExtractor = new BaseDateExtractor(new EnglishDateExtractorConfiguration()); DateTimeExtractor = new BaseDateTimeExtractor(new EnglishDateTimeExtractorConfiguration()); DatePeriodExtractor = new BaseDatePeriodExtractor(new EnglishDatePeriodExtractorConfiguration()); TimePeriodExtractor = new BaseTimePeriodExtractor(new EnglishTimePeriodExtractorConfiguration()); DateTimePeriodExtractor = new BaseDateTimePeriodExtractor(new EnglishDateTimePeriodExtractorConfiguration()); }
public FrenchSetExtractorConfiguration() { DurationExtractor = new BaseDurationExtractor(new FrenchDurationExtractorConfiguration()); TimeExtractor = new BaseTimeExtractor(new FrenchTimeExtractorConfiguration()); DateExtractor = new BaseDateExtractor(new FrenchDateExtractorConfiguration()); DateTimeExtractor = new BaseDateTimeExtractor(new FrenchDateTimeExtractorConfiguration()); DatePeriodExtractor = new BaseDatePeriodExtractor(new FrenchDatePeriodExtractorConfiguration()); TimePeriodExtractor = new BaseTimePeriodExtractor(new FrenchTimePeriodExtractorConfiguration()); DateTimePeriodExtractor = new BaseDateTimePeriodExtractor(new FrenchDateTimePeriodExtractorConfiguration()); }
public PortugueseSetExtractorConfiguration(IOptionsConfiguration config) : base(config) { DurationExtractor = new BaseDurationExtractor(new PortugueseDurationExtractorConfiguration(this)); TimeExtractor = new BaseTimeExtractor(new PortugueseTimeExtractorConfiguration(this)); DateExtractor = new BaseDateExtractor(new PortugueseDateExtractorConfiguration(this)); DateTimeExtractor = new BaseDateTimeExtractor(new PortugueseDateTimeExtractorConfiguration(this)); DatePeriodExtractor = new BaseDatePeriodExtractor(new PortugueseDatePeriodExtractorConfiguration(this)); TimePeriodExtractor = new BaseTimePeriodExtractor(new PortugueseTimePeriodExtractorConfiguration(this)); DateTimePeriodExtractor = new BaseDateTimePeriodExtractor(new PortugueseDateTimePeriodExtractorConfiguration(this)); }
public SpanishSetExtractorConfiguration() : base(DateTimeOptions.None) { DurationExtractor = new BaseDurationExtractor(new SpanishDurationExtractorConfiguration()); TimeExtractor = new BaseTimeExtractor(new SpanishTimeExtractorConfiguration()); DateExtractor = new BaseDateExtractor(new SpanishDateExtractorConfiguration()); DateTimeExtractor = new BaseDateTimeExtractor(new SpanishDateTimeExtractorConfiguration()); DatePeriodExtractor = new BaseDatePeriodExtractor(new SpanishDatePeriodExtractorConfiguration()); TimePeriodExtractor = new BaseTimePeriodExtractor(new SpanishTimePeriodExtractorConfiguration()); DateTimePeriodExtractor = new BaseDateTimePeriodExtractor(new SpanishDateTimePeriodExtractorConfiguration()); }
public EnglishSetExtractorConfiguration(IOptionsConfiguration config) : base(config) { DurationExtractor = new BaseDurationExtractor(new EnglishDurationExtractorConfiguration(this)); TimeExtractor = new BaseTimeExtractor(new EnglishTimeExtractorConfiguration(this)); DateExtractor = new BaseDateExtractor(new EnglishDateExtractorConfiguration(this)); DateTimeExtractor = new BaseDateTimeExtractor(new EnglishDateTimeExtractorConfiguration(this)); DatePeriodExtractor = new BaseDatePeriodExtractor(new EnglishDatePeriodExtractorConfiguration(this)); TimePeriodExtractor = new BaseTimePeriodExtractor(new EnglishTimePeriodExtractorConfiguration(this)); DateTimePeriodExtractor = new BaseDateTimePeriodExtractor(new EnglishDateTimePeriodExtractorConfiguration(this)); }
public HindiSetExtractorConfiguration(IDateTimeOptionsConfiguration config) : base(config) { DurationExtractor = new BaseDurationExtractor(new HindiDurationExtractorConfiguration(this)); TimeExtractor = new BaseTimeExtractor(new HindiTimeExtractorConfiguration(this)); DateExtractor = new BaseDateExtractor(new HindiDateExtractorConfiguration(this)); DateTimeExtractor = new BaseDateTimeExtractor(new HindiDateTimeExtractorConfiguration(this)); DatePeriodExtractor = new BaseDatePeriodExtractor(new HindiDatePeriodExtractorConfiguration(this)); TimePeriodExtractor = new BaseTimePeriodExtractor(new HindiTimePeriodExtractorConfiguration(this)); DateTimePeriodExtractor = new BaseDateTimePeriodExtractor(new HindiDateTimePeriodExtractorConfiguration(this)); }
public DutchSetExtractorConfiguration(IDateTimeOptionsConfiguration config) : base(config) { DurationExtractor = new BaseDurationExtractor(new DutchDurationExtractorConfiguration(this)); TimeExtractor = new BaseTimeExtractor(new DutchTimeExtractorConfiguration(this)); DateExtractor = new BaseDateExtractor(new DutchDateExtractorConfiguration(this)); DateTimeExtractor = new BaseDateTimeExtractor(new DutchDateTimeExtractorConfiguration(this)); DatePeriodExtractor = new BaseDatePeriodExtractor(new DutchDatePeriodExtractorConfiguration(this)); TimePeriodExtractor = new BaseTimePeriodExtractor(new DutchTimePeriodExtractorConfiguration(this)); DateTimePeriodExtractor = new BaseDateTimePeriodExtractor(new DutchDateTimePeriodExtractorConfiguration(this)); }
public FrenchMergedExtractorConfiguration() { DateExtractor = new BaseDateExtractor(new FrenchDateExtractorConfiguration()); TimeExtractor = new BaseTimeExtractor(new FrenchTimeExtractorConfiguration()); DateTimeExtractor = new BaseDateTimeExtractor(new FrenchDateTimeExtractorConfiguration()); DatePeriodExtractor = new BaseDatePeriodExtractor(new FrenchDatePeriodExtractorConfiguration()); TimePeriodExtractor = new BaseTimePeriodExtractor(new FrenchTimePeriodExtractorConfiguration()); DateTimePeriodExtractor = new BaseDateTimePeriodExtractor(new FrenchDateTimePeriodExtractorConfiguration()); DurationExtractor = new BaseDurationExtractor(new FrenchDurationExtractorConfiguration()); GetExtractor = new BaseSetExtractor(new FrenchSetExtractorConfiguration()); HolidayExtractor = new BaseHolidayExtractor(new FrenchHolidayExtractorConfiguration()); }
public SpanishMergedExtractorConfiguration() { DateExtractor = new BaseDateExtractor(new SpanishDateExtractorConfiguration()); TimeExtractor = new BaseTimeExtractor(new SpanishTimeExtractorConfiguration()); DateTimeExtractor = new BaseDateTimeExtractor(new SpanishDateTimeExtractorConfiguration()); DatePeriodExtractor = new BaseDatePeriodExtractor(new SpanishDatePeriodExtractorConfiguration()); TimePeriodExtractor = new BaseTimePeriodExtractor(new SpanishTimePeriodExtractorConfiguration()); DateTimePeriodExtractor = new BaseDateTimePeriodExtractor(new SpanishDateTimePeriodExtractorConfiguration()); DurationExtractor = new BaseDurationExtractor(new SpanishDurationExtractorConfiguration()); SetExtractor = new BaseSetExtractor(new SpanishSetExtractorConfiguration()); HolidayExtractor = new BaseHolidayExtractor(new SpanishHolidayExtractorConfiguration()); }
public SwedishCommonDateTimeParserConfiguration(IDateTimeOptionsConfiguration config) : base(config) { UtilityConfiguration = new SwedishDatetimeUtilityConfiguration(); UnitMap = DateTimeDefinitions.UnitMap.ToImmutableDictionary(); UnitValueMap = DateTimeDefinitions.UnitValueMap.ToImmutableDictionary(); SeasonMap = DateTimeDefinitions.SeasonMap.ToImmutableDictionary(); SpecialYearPrefixesMap = DateTimeDefinitions.SpecialYearPrefixesMap.ToImmutableDictionary(); CardinalMap = DateTimeDefinitions.CardinalMap.ToImmutableDictionary(); DayOfWeek = DateTimeDefinitions.DayOfWeek.ToImmutableDictionary(); MonthOfYear = DateTimeDefinitions.MonthOfYear.ToImmutableDictionary(); Numbers = DateTimeDefinitions.Numbers.ToImmutableDictionary(); DoubleNumbers = DateTimeDefinitions.DoubleNumbers.ToImmutableDictionary(); WrittenDecades = DateTimeDefinitions.WrittenDecades.ToImmutableDictionary(); SpecialDecadeCases = DateTimeDefinitions.SpecialDecadeCases.ToImmutableDictionary(); var numOptions = NumberOptions.None; if ((config.Options & DateTimeOptions.NoProtoCache) != 0) { numOptions = NumberOptions.NoProtoCache; } var numConfig = new BaseNumberOptionsConfiguration(config.Culture, numOptions); CardinalExtractor = Number.Swedish.CardinalExtractor.GetInstance(numConfig); IntegerExtractor = Number.Swedish.IntegerExtractor.GetInstance(numConfig); OrdinalExtractor = Number.Swedish.OrdinalExtractor.GetInstance(numConfig); NumberParser = new BaseNumberParser(new SwedishNumberParserConfiguration(numConfig)); TimeZoneParser = new BaseTimeZoneParser(new SwedishTimeZoneParserConfiguration(this)); // Do not change order. The order of initialization can lead to side-effects DateExtractor = new BaseDateExtractor(new SwedishDateExtractorConfiguration(this)); TimeExtractor = new BaseTimeExtractor(new SwedishTimeExtractorConfiguration(this)); DateTimeExtractor = new BaseDateTimeExtractor(new SwedishDateTimeExtractorConfiguration(this)); DurationExtractor = new BaseDurationExtractor(new SwedishDurationExtractorConfiguration(this)); DatePeriodExtractor = new BaseDatePeriodExtractor(new SwedishDatePeriodExtractorConfiguration(this)); TimePeriodExtractor = new BaseTimePeriodExtractor(new SwedishTimePeriodExtractorConfiguration(this)); DateTimePeriodExtractor = new BaseDateTimePeriodExtractor(new SwedishDateTimePeriodExtractorConfiguration(this)); DurationParser = new BaseDurationParser(new SwedishDurationParserConfiguration(this)); DateParser = new BaseDateParser(new SwedishDateParserConfiguration(this)); TimeParser = new TimeParser(new SwedishTimeParserConfiguration(this)); DateTimeParser = new BaseDateTimeParser(new SwedishDateTimeParserConfiguration(this)); DatePeriodParser = new BaseDatePeriodParser(new SwedishDatePeriodParserConfiguration(this)); TimePeriodParser = new BaseTimePeriodParser(new SwedishTimePeriodParserConfiguration(this)); DateTimePeriodParser = new BaseDateTimePeriodParser(new SwedishDateTimePeriodParserConfiguration(this)); DateTimeAltParser = new BaseDateTimeAltParser(new SwedishDateTimeAltParserConfiguration(this)); }
public PortugueseMergedExtractorConfiguration(DateTimeOptions options) : base(options) { DateExtractor = new BaseDateExtractor(new PortugueseDateExtractorConfiguration()); TimeExtractor = new BaseTimeExtractor(new PortugueseTimeExtractorConfiguration()); DateTimeExtractor = new BaseDateTimeExtractor(new PortugueseDateTimeExtractorConfiguration()); DatePeriodExtractor = new BaseDatePeriodExtractor(new PortugueseDatePeriodExtractorConfiguration()); TimePeriodExtractor = new BaseTimePeriodExtractor(new PortugueseTimePeriodExtractorConfiguration()); DateTimePeriodExtractor = new BaseDateTimePeriodExtractor(new PortugueseDateTimePeriodExtractorConfiguration()); DurationExtractor = new BaseDurationExtractor(new PortugueseDurationExtractorConfiguration()); SetExtractor = new BaseSetExtractor(new PortugueseSetExtractorConfiguration()); HolidayExtractor = new BaseHolidayExtractor(new PortugueseHolidayExtractorConfiguration()); IntegerExtractor = new Number.Portuguese.IntegerExtractor(); }
public SpanishMergedExtractorConfiguration(DateTimeOptions options) : base(options) { DateExtractor = new BaseDateExtractor(new SpanishDateExtractorConfiguration()); TimeExtractor = new BaseTimeExtractor(new SpanishTimeExtractorConfiguration(options)); DateTimeExtractor = new BaseDateTimeExtractor(new SpanishDateTimeExtractorConfiguration(options)); DatePeriodExtractor = new BaseDatePeriodExtractor(new SpanishDatePeriodExtractorConfiguration()); TimePeriodExtractor = new BaseTimePeriodExtractor(new SpanishTimePeriodExtractorConfiguration()); DateTimePeriodExtractor = new BaseDateTimePeriodExtractor(new SpanishDateTimePeriodExtractorConfiguration()); DurationExtractor = new BaseDurationExtractor(new SpanishDurationExtractorConfiguration()); SetExtractor = new BaseSetExtractor(new SpanishSetExtractorConfiguration()); HolidayExtractor = new BaseHolidayExtractor(new SpanishHolidayExtractorConfiguration()); IntegerExtractor = new Number.Spanish.IntegerExtractor(); }
public GermanMergedExtractorConfiguration(DateTimeOptions options) : base(options) { DateExtractor = new BaseDateExtractor(new GermanDateExtractorConfiguration()); TimeExtractor = new BaseTimeExtractor(new GermanTimeExtractorConfiguration(options)); DateTimeExtractor = new BaseDateTimeExtractor(new GermanDateTimeExtractorConfiguration(options)); DatePeriodExtractor = new BaseDatePeriodExtractor(new GermanDatePeriodExtractorConfiguration()); TimePeriodExtractor = new BaseTimePeriodExtractor(new GermanTimePeriodExtractorConfiguration()); DateTimePeriodExtractor = new BaseDateTimePeriodExtractor(new GermanDateTimePeriodExtractorConfiguration()); DurationExtractor = new BaseDurationExtractor(new GermanDurationExtractorConfiguration()); SetExtractor = new BaseSetExtractor(new GermanSetExtractorConfiguration()); HolidayExtractor = new BaseHolidayExtractor(new GermanHolidayExtractorConfiguration()); IntegerExtractor = Number.German.IntegerExtractor.GetInstance(); }
public EnglishMergedExtractorConfiguration() { DateExtractor = new BaseDateExtractor(new EnglishDateExtractorConfiguration()); TimeExtractor = new BaseTimeExtractor(new EnglishTimeExtractorConfiguration()); DateTimeExtractor = new BaseDateTimeExtractor(new EnglishDateTimeExtractorConfiguration()); DatePeriodExtractor = new BaseDatePeriodExtractor(new EnglishDatePeriodExtractorConfiguration()); TimePeriodExtractor = new BaseTimePeriodExtractor(new EnglishTimePeriodExtractorConfiguration()); DateTimePeriodExtractor = new BaseDateTimePeriodExtractor(new EnglishDateTimePeriodExtractorConfiguration()); DurationExtractor = new BaseDurationExtractor(new EnglishDurationExtractorConfiguration()); SetExtractor = new BaseSetExtractor(new EnglishSetExtractorConfiguration()); HolidayExtractor = new BaseHolidayExtractor(new EnglishHolidayExtractorConfiguration()); IntegerExtractor = Number.English.IntegerExtractor.GetInstance(); }
public FrenchMergedExtractorConfiguration(DateTimeOptions options) : base(options) { DateExtractor = new BaseDateExtractor(new FrenchDateExtractorConfiguration()); TimeExtractor = new BaseTimeExtractor(new FrenchTimeExtractorConfiguration(options)); DateTimeExtractor = new BaseDateTimeExtractor(new FrenchDateTimeExtractorConfiguration(options)); DatePeriodExtractor = new BaseDatePeriodExtractor(new FrenchDatePeriodExtractorConfiguration()); TimePeriodExtractor = new BaseTimePeriodExtractor(new FrenchTimePeriodExtractorConfiguration()); DateTimePeriodExtractor = new BaseDateTimePeriodExtractor(new FrenchDateTimePeriodExtractorConfiguration()); DurationExtractor = new BaseDurationExtractor(new FrenchDurationExtractorConfiguration()); SetExtractor = new BaseSetExtractor(new FrenchSetExtractorConfiguration()); HolidayExtractor = new BaseHolidayExtractor(new FrenchHolidayExtractorConfiguration()); DateTimeAltExtractor = new BaseDateTimeAltExtractor(new FrenchDateTimeAltExtractorConfiguration()); IntegerExtractor = new Number.French.IntegerExtractor(); }
public HindiCommonDateTimeParserConfiguration(IDateTimeOptionsConfiguration config) : base(config) { UtilityConfiguration = new HindiDatetimeUtilityConfiguration(); UnitMap = DateTimeDefinitions.UnitMap.ToImmutableDictionary(); UnitValueMap = DateTimeDefinitions.UnitValueMap.ToImmutableDictionary(); SeasonMap = DateTimeDefinitions.SeasonMap.ToImmutableDictionary(); SpecialYearPrefixesMap = DateTimeDefinitions.SpecialYearPrefixesMap.ToImmutableDictionary(); CardinalMap = DateTimeDefinitions.CardinalMap.ToImmutableDictionary(); DayOfWeek = DateTimeDefinitions.DayOfWeek.ToImmutableDictionary(); MonthOfYear = DateTimeDefinitions.MonthOfYear.ToImmutableDictionary(); Numbers = DateTimeDefinitions.Numbers.ToImmutableDictionary(); DoubleNumbers = DateTimeDefinitions.DoubleNumbers.ToImmutableDictionary(); WrittenDecades = DateTimeDefinitions.WrittenDecades.ToImmutableDictionary(); SpecialDecadeCases = DateTimeDefinitions.SpecialDecadeCases.ToImmutableDictionary(); var numOptions = NumberOptions.None; if ((config.Options & DateTimeOptions.NoProtoCache) != 0) { numOptions = NumberOptions.NoProtoCache; } var numConfig = new BaseNumberOptionsConfiguration(config.Culture, numOptions); CardinalExtractor = Number.Hindi.CardinalExtractor.GetInstance(); IntegerExtractor = Number.Hindi.IntegerExtractor.GetInstance(); OrdinalExtractor = Number.Hindi.OrdinalExtractor.GetInstance(); NumberParser = new BaseIndianNumberParser(new HindiNumberParserConfiguration(numConfig)); TimeZoneParser = new BaseTimeZoneParser(); DateExtractor = new BaseDateExtractor(new HindiDateExtractorConfiguration(this)); TimeExtractor = new BaseTimeExtractor(new HindiTimeExtractorConfiguration(this)); DateTimeExtractor = new BaseDateTimeExtractor(new HindiDateTimeExtractorConfiguration(this)); DurationExtractor = new BaseDurationExtractor(new HindiDurationExtractorConfiguration(this)); DatePeriodExtractor = new BaseDatePeriodExtractor(new HindiDatePeriodExtractorConfiguration(this)); TimePeriodExtractor = new BaseTimePeriodExtractor(new HindiTimePeriodExtractorConfiguration(this)); DateTimePeriodExtractor = new BaseDateTimePeriodExtractor(new HindiDateTimePeriodExtractorConfiguration(this)); DurationParser = new BaseDurationParser(new HindiDurationParserConfiguration(this)); DateParser = new BaseDateParser(new HindiDateParserConfiguration(this)); TimeParser = new TimeParser(new HindiTimeParserConfiguration(this)); DateTimeParser = new BaseDateTimeParser(new HindiDateTimeParserConfiguration(this)); DatePeriodParser = new BaseDatePeriodParser(new HindiDatePeriodParserConfiguration(this)); TimePeriodParser = new BaseTimePeriodParser(new HindiTimePeriodParserConfiguration(this)); DateTimePeriodParser = new BaseDateTimePeriodParser(new HindiDateTimePeriodParserConfiguration(this)); DateTimeAltParser = new BaseDateTimeAltParser(new HindiDateTimeAltParserConfiguration(this)); }
public FrenchCommonDateTimeParserConfiguration(IDateTimeOptionsConfiguration config) : base(config) { UtilityConfiguration = new FrenchDatetimeUtilityConfiguration(); UnitMap = DateTimeDefinitions.UnitMap.ToImmutableDictionary(); UnitValueMap = DateTimeDefinitions.UnitValueMap.ToImmutableDictionary(); SeasonMap = DateTimeDefinitions.SeasonMap.ToImmutableDictionary(); SpecialYearPrefixesMap = DateTimeDefinitions.SpecialYearPrefixesMap.ToImmutableDictionary(); CardinalMap = DateTimeDefinitions.CardinalMap.ToImmutableDictionary(); DayOfWeek = DateTimeDefinitions.DayOfWeek.ToImmutableDictionary(); MonthOfYear = DateTimeDefinitions.MonthOfYear.ToImmutableDictionary(); Numbers = DateTimeDefinitions.Numbers.ToImmutableDictionary(); DoubleNumbers = DateTimeDefinitions.DoubleNumbers.ToImmutableDictionary(); WrittenDecades = DateTimeDefinitions.WrittenDecades.ToImmutableDictionary(); SpecialDecadeCases = DateTimeDefinitions.SpecialDecadeCases.ToImmutableDictionary(); var numOptions = NumberOptions.None; if ((config.Options & DateTimeOptions.NoProtoCache) != 0) { numOptions = NumberOptions.NoProtoCache; } var numConfig = new BaseNumberOptionsConfiguration(config.Culture, numOptions); CardinalExtractor = Number.French.CardinalExtractor.GetInstance(numConfig); IntegerExtractor = Number.French.IntegerExtractor.GetInstance(numConfig); OrdinalExtractor = Number.French.OrdinalExtractor.GetInstance(numConfig); NumberParser = new BaseNumberParser(new FrenchNumberParserConfiguration(numConfig)); DateExtractor = new BaseDateExtractor(new FrenchDateExtractorConfiguration(this)); TimeExtractor = new BaseTimeExtractor(new FrenchTimeExtractorConfiguration(this)); DateTimeExtractor = new BaseDateTimeExtractor(new FrenchDateTimeExtractorConfiguration(this)); DurationExtractor = new BaseDurationExtractor(new FrenchDurationExtractorConfiguration(this)); DatePeriodExtractor = new BaseDatePeriodExtractor(new FrenchDatePeriodExtractorConfiguration(this)); TimePeriodExtractor = new BaseTimePeriodExtractor(new FrenchTimePeriodExtractorConfiguration(this)); DateTimePeriodExtractor = new BaseDateTimePeriodExtractor(new FrenchDateTimePeriodExtractorConfiguration(this)); // DurationParser should be assigned first, as DateParser would reference the DurationParser DurationParser = new BaseDurationParser(new FrenchDurationParserConfiguration(this)); DateParser = new BaseDateParser(new FrenchDateParserConfiguration(this)); TimeParser = new BaseTimeParser(new FrenchTimeParserConfiguration(this)); DateTimeParser = new BaseDateTimeParser(new FrenchDateTimeParserConfiguration(this)); DatePeriodParser = new BaseDatePeriodParser(new FrenchDatePeriodParserConfiguration(this)); TimePeriodParser = new BaseTimePeriodParser(new FrenchTimePeriodParserConfiguration(this)); DateTimePeriodParser = new BaseDateTimePeriodParser(new FrenchDateTimePeriodParserConfiguration(this)); DateTimeAltParser = new BaseDateTimeAltParser(new FrenchDateTimeAltParserConfiguration(this)); }
public ItalianMergedExtractorConfiguration(DateTimeOptions options) : base(options) { DateExtractor = new BaseDateExtractor(new ItalianDateExtractorConfiguration()); TimeExtractor = new BaseTimeExtractor(new ItalianTimeExtractorConfiguration(options)); DateTimeExtractor = new BaseDateTimeExtractor(new ItalianDateTimeExtractorConfiguration(options)); DatePeriodExtractor = new BaseDatePeriodExtractor(new ItalianDatePeriodExtractorConfiguration()); TimePeriodExtractor = new BaseTimePeriodExtractor(new ItalianTimePeriodExtractorConfiguration()); DateTimePeriodExtractor = new BaseDateTimePeriodExtractor(new ItalianDateTimePeriodExtractorConfiguration()); DurationExtractor = new BaseDurationExtractor(new ItalianDurationExtractorConfiguration()); SetExtractor = new BaseSetExtractor(new ItalianSetExtractorConfiguration()); HolidayExtractor = new BaseHolidayExtractor(new ItalianHolidayExtractorConfiguration()); DateTimeAltExtractor = new BaseDateTimeAltExtractor(new ItalianDateTimeAltExtractorConfiguration()); IntegerExtractor = new Number.Italian.IntegerExtractor(); }
public ItalianMergedExtractorConfiguration(IOptionsConfiguration config) : base(config) { DateExtractor = new BaseDateExtractor(new ItalianDateExtractorConfiguration(this)); TimeExtractor = new BaseTimeExtractor(new ItalianTimeExtractorConfiguration(this)); DateTimeExtractor = new BaseDateTimeExtractor(new ItalianDateTimeExtractorConfiguration(this)); DatePeriodExtractor = new BaseDatePeriodExtractor(new ItalianDatePeriodExtractorConfiguration(this)); TimePeriodExtractor = new BaseTimePeriodExtractor(new ItalianTimePeriodExtractorConfiguration(this)); DateTimePeriodExtractor = new BaseDateTimePeriodExtractor(new ItalianDateTimePeriodExtractorConfiguration(this)); DurationExtractor = new BaseDurationExtractor(new ItalianDurationExtractorConfiguration(this)); SetExtractor = new BaseSetExtractor(new ItalianSetExtractorConfiguration(this)); HolidayExtractor = new BaseHolidayExtractor(new ItalianHolidayExtractorConfiguration(this)); TimeZoneExtractor = new BaseTimeZoneExtractor(new ItalianTimeZoneExtractorConfiguration(this)); DateTimeAltExtractor = new BaseDateTimeAltExtractor(new ItalianDateTimeAltExtractorConfiguration(this)); IntegerExtractor = Number.Italian.IntegerExtractor.GetInstance(); }