Plucen...enizer(3pm)
π Plucene::Analysis::CharTokenizer β the vibe π
okay bestie, pull up a chair, we're looking at Plucene::Analysis::CharTokenizer, part of the Plucene::Analysis family, living over in the User Contributed Perl Documentation corner of your 3pm man pages π«Ά. She's a base class, she's abstract, she's iconic, and she is not here to do the work herself. Let's get into it β¨
πΈ NAME πΈ
Plucene::Analysis::CharTokenizer β the base class for character tokenisers, no cap π
β¨ SYNOPSIS β¨
# isa Plucene::Analysis::Tokenizer
my $next = $chartokenizer->next;
that's it, that's the whole vibe. she inherits, she hands you the next thing, periodt π
π¦ DESCRIPTION π¦
So likeβ¦ this is an abstract base class for simple, character-oriented tokenizers. Abstract means you don't just instantiate her and expect a whole personality β she's the blueprint, the main character energy that subclasses build on π. She tokenizes, but character by character, and she keeps it simple.
π METHODS π
π token_re
This one should be defined in subclasses. Like, she's leaving it up to you, bestie β that's your homework, not hers π
π normalize
This will normalise the character before it is added to the token. Little glow-up for every char on the way in β¨
π next
my $next = $chartokenizer->next;
This will return the next token in the string, or undef at the end of the string. So when you hit undef, that's the end, that's the finale, the credits are rolling π
fr fr: this page is short because she's a base class β the actual lore lives in her subclasses. Don't come for her, she's doing her job π«Ά
and that's a wrap on the Plucene::Analysis::CharTokenizer(3pm) era, written by the User Contributed Perl Documentation girlies, from perl v5.36.0, dated 2022-12-04 π bye bestie, go tokenize something πβ¨
π¦ where this page comes from
- debian bookworm: libplucene-perl 1.25-5
- debian trixie: libplucene-perl 1.25-5
- ubuntu noble: libplucene-perl 1.25-5
- ubuntu resolute: libplucene-perl 1.25-5
- ubuntu stonking: libplucene-perl 1.25-5
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms