Class TokenizationContext
Holds additional metadata for tokenization for a given culture, such as any custom formats for Number, Date etc.
Inheritance
TokenizationContext
Namespace: SdlSdl.LanguagePlatformCoreTokenization
Assembly: Sdl.LanguagePlatform.Core.dll
Syntax
public class TokenizationContext
Constructors
TokenizationContext(CultureCode, Dictionary<DateTimePatternType, List<string>>, List<SeparatorCombination>, Dictionary<string, CustomUnitDefinition>, List<CurrencyFormat>)
Declaration
public TokenizationContext(CultureCode culture, Dictionary<DateTimePatternType, List<string>> dateTimeFormats, List<SeparatorCombination> separatorCombinations, Dictionary<string, CustomUnitDefinition> unitDefinitions, List<CurrencyFormat> currencyFormats)
Parameters
Properties
Culture
Declaration
public CultureCode Culture { get; }
Property Value
CurrencyFormats
Declaration
public List<CurrencyFormat> CurrencyFormats { get; }
Property Value
DateTimeFormats
Declaration
public Dictionary<DateTimePatternType, List<string>> DateTimeFormats { get; }
Property Value
SeparatorCombinations
Declaration
public List<SeparatorCombination> SeparatorCombinations { get; }
Property Value
UnitDefinitions
Declaration
public Dictionary<string, CustomUnitDefinition> UnitDefinitions { get; }
Property Value