Plucen...ilarity(3pm)

πŸ“¦
version 1.25 Β· 2 versions
  • 1.25 Β· debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking (latest)
  • 1.25 Β· ubuntu jammy
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

✨ 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