Plucen...ilarity(3pm)
β¨ NAME β¨
okay so this is Plucene::Search::Similarity β it's the whole vibe check for the score of a query π
it lives in the User Contributed Perl Documentation, section 3pm, and yes bestie, the man page name got squished into Plucen...ilarity(3pm) which is honestly giving β¨elite truncationβ¨ but we move π«Ά
πΈ DESCRIPTION πΈ
It's the score of a query for a given document. that's the whole thing. no cap, that's the assignment and it ate π
π METHODS π
π norm
my $norm = $sim->norm($num_term);
you hand it a $num_term and it hands you back the norm, and you store it in $norm like a good little main character π
π¦ byte_norm
my $byte_norm = $sim->byte_norm($byte);
same energy, but for a $byte β you get a $byte_norm back. lowkey iconic, highkey just a method π§
π₯ tf
Computes a score factor based on a term or phrase's frequency in a document.
like. how often does the thing show up? that's the tea, and tf is the one spilling it β
π idf
Computes a score factor for a phrase.
yep. a phrase. that's the whole description. short and it knows it π
π coord
Computes a score factor based on the fraction of all query terms that a document contains.
so if your query has a bunch of terms and the document only bothered to show up for some of them, coord is doing the math on that fraction. periodt π
not me writing a whole man page and it being this short. obsessed. the vibes are immaculate and the facts are all still here fr fr π
and that's a wrap bestie!! π this one comes to you from perl v5.36.0, dated 2022-12-04, filed under Plucen...ilarity(3pm) in the User Contributed Perl Documentation. slay, stay scored, drink water πΈπ¦β¨
π¦ 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