caio.co/de/cantine

Adjust to new `extract_filtered` interface

Id
a47cb96f8de547540005affa72ecce29ddcc28e9
Author
Caio
Commit time
2020-03-22T11:01:02+01:00

Modified cantine/src/bin/check_sim.rs

@@ -87,7 +87,7
let keywords = topterms.extract_filtered(
20,
input.join("\n").as_str(),
- |term: &Term, _tf, doc_freq, _num_docs| {
+ &|term: &Term, _tf, doc_freq, _num_docs| {
// I haven't put any effort in the tokenization step,
// so there's plenty of "relevant rubbish" in the
// index like "100g", "tbsp", unicode fractions, etc.