The type of a token, e.g. whether the token represents a word, punctuation, etc.
Namespace: Sdl.LanguagePlatform.Core.TokenizationAssembly: Sdl.LanguagePlatform.Core (in Sdl.LanguagePlatform.Core.dll) Version: 1.6.0.0 (1.7.3164.0)
SyntaxPublic Enumeration TokenType
public enum class TokenType
Members|
| Member name | Value | Description |
|---|
| Unknown | 0 |
The token type is unknown or has not yet been determined.
|
| Word | 1 |
The token represents a word.
|
| Abbreviation | 2 |
The token represents an abbreviation.
|
| CharSequence | 3 |
The token represents a character sequence. This is used in contexts (such as
tokenization of some far-east languages) where word boundaries cannot easily
be determined.
|
| GeneralPunctuation | 4 |
The token represents general punctuation.
|
| OpeningPunctuation | 5 |
The token represents opening punctuation, such as a left parenthesis, which is
typically followed by the closing counterpart.
|
| ClosingPunctuation | 6 |
The token represents closing punctuation, such as a right parenthesis, which is
typically preceded by the opening counterpart.
|
| Date | 7 |
The token represents a complex date expression.
|
| Time | 8 |
The token represents a complex time expression.
|
| Variable | 9 |
The token represents a substitutable variable.
|
| Number | 10 |
The token represents a number.
|
| Measurement | 11 |
The token represents a measurement, which is a combination of a number followed by a unit.
|
| Whitespace | 12 |
The token represents a non-empty sequence of whitespace.
|
| Acronym | 13 |
The token represents an acronym.
|
| Uri | 14 |
The token represents a URI/URL.
|
| OtherTextPlaceable | 15 |
The token represents an unspecified text placeable (not a tag placeables), which can
be placed, but not auto-substituted.
|
| UserDefined | 16 |
The token represents a user-defined entity.
|
| Tag | 17 |
The token represents a tag.
|
| AlphaNumeric | 18 | |
See Also
Comments