Change indexing threshold

This commit is contained in:
ManyTheFish 2023-03-08 12:36:04 +01:00
parent 3092cf0448
commit 24c0775c67

View File

@ -288,5 +288,5 @@ fn most_frequent_languages(
fn compute_laguage_frequency_threshold(languages_frequency: &[(Language, usize)]) -> usize { fn compute_laguage_frequency_threshold(languages_frequency: &[(Language, usize)]) -> usize {
let total: usize = languages_frequency.iter().map(|(_, c)| c).sum(); let total: usize = languages_frequency.iter().map(|(_, c)| c).sum();
total / 20 // 5% is a completely arbitrar value. total / 10 // 10% is a completely arbitrar value.
} }