KinoSe...enBatch(3pm)
π KinoSearch1::Analysis::TokenBatch β a collection of tokens π
okay bestie, so this is KinoSearch1::Analysis::TokenBatch β like, the whole vibe is "add many tokens to the batch, by supplying the string to be tokenized, and arrays of token starts and token ends (specified in bytes)." π«Ά It's part of the User Contributed Perl Documentation, so you know it's the people's manpage.
β¨ NAME β¨
KinoSearch1::Analysis::TokenBatch β a collection of tokens π
πΈ SYNOPSIS πΈ
while ( $batch->next ) {
$batch->set_text( lc( $batch->get_text ) );
}
π§ͺ EXPERIMENTAL API π§ͺ
gird ur loins bestie β TokenBatch's API should be considered experimental and is likely to change. π
π¦ DESCRIPTION π¦
A TokenBatch is literally just a collection of Tokens π which you can add to, and then iterate over. That's it, that's the whole girl. Adding and then looping. Periodt.
β METHODS β
π new
my $batch = KinoSearch1::Analysis::TokenBatch->new;
Constructor. Ya build a batch. π
π append
$batch->append( $text, $start_offset, $end_offset, $pos_inc );
Add a Token to the end of the batch, no cap. It accepts either three or four arguments: text, start_offset, end_offset, and an optional position increment which defaults to 1 if you don't supply it. π For a description of what these arguments actually mean mean, go see the docs for Token. iykyk.
π next
while ( $batch->next ) {
# ...
}
Proceed to the next token in the TokenBatch. Returns true if the TokenBatch ends up located at a valid token. slay. π₯
π ACCESSOR METHODS π
All of TokenBatch's accessor methods affect the current Token. Calling any of these methods when the TokenBatch is not located at a valid Token will trigger an exception β so stay in ur lane and only call them when you're actually sitting on a token, bestie. π
set_text/get_textβ Set/get thetextof the current Token.set_start_offset/get_start_offsetβ Set/get thestart_offsetof the current Token.set_end_offset/get_end_offsetβ Set/get theend_offsetof the current Token.set_pos_inc/get_pos_incβ Set/get the position increment of the current Token.
π COPYRIGHT π
Copyright 2005-2010 Marvin Humphrey
π LICENSE, DISCLAIMER, BUGS, etc. π
See KinoSearch1 version 1.01.
okay that's the whole page, you ate it fr fr π this was KinoSe...enBatch(3pm) from perl v5.42.3, dated 2026-08-20 β go forth and tokenize, main character πΈβ¨π
π¦ where this page comes from
- ubuntu stonking: libkinosearch1-perl 1.01-6build2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms