Class SimpleTokenizer
Performs tokenization using character classes.
public class SimpleTokenizer : AbstractTokenizer, ITokenizer
- Inheritance
-
SimpleTokenizer
- Implements
- Inherited Members
Constructors
SimpleTokenizer()
public SimpleTokenizer()
Remarks
Deprecated: Use INSTANCE field instead to obtain an instance, constructor will be made private in the future.
Fields
INSTANCE
public static readonly SimpleTokenizer INSTANCE
Field Value
Methods
TokenizePos(string)
Finds the boundaries of atomic parts in a string.
public override Span[] TokenizePos(string s)
Parameters
sstringThe string to be tokenized.
Returns
- Span[]
The Span[] with the spans (offsets into s) for each token as the individuals array elements.