Class WhitespaceTokenizer
This tokenizer uses white spaces to tokenize the input text.
To obtain an instance of this tokenizer use the static final INSTANCE field.
public class WhitespaceTokenizer : AbstractTokenizer, ITokenizer
- Inheritance
-
WhitespaceTokenizer
- Implements
- Inherited Members
Fields
INSTANCE
Use this static reference to retrieve an instance of the WhitespaceTokenizer.
public static readonly WhitespaceTokenizer INSTANCE
Field Value
Methods
TokenizePos(string)
Finds the boundaries of atomic parts in a string.
public override Span[] TokenizePos(string d)
Parameters
dstring
Returns
- Span[]
The Span[] with the spans (offsets into s) for each token as the individuals array elements.