NLP::Tokenizer
Constants
NUMBER_PATTERN = /\d+(\.\d+)?/
PUNCTUATION_PATTERN = /[.!?,:;]/
WHITESPACE_PATTERN = /\s+/
WORD_PATTERN = /[a-zA-Z]+/
Basic tokenization patterns
Class methods
tokenize_sentences(text : String) : Array(Array(String))
Advanced tokenization that preserves sentence structure
tokenize_with_features(text : String) : Array(NamedTuple(token: String, type: String, position: Int32))
Advanced tokenization with linguistic features