mirror of
https://github.com/mitb-archive/filebot
synced 2024-11-17 23:05:03 -05:00
* adjusted fuzzy string matching to better work together with new title matching. Can be more lenient now that most title will be caught before fuzzy string matching already.
This commit is contained in:
parent
6171dac38f
commit
0f4809151a
@ -186,9 +186,9 @@ public enum MatchSimilarityMetric implements SimilarityMetric {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public float getSimilarity(Object o1, Object o2) {
|
public float getSimilarity(Object o1, Object o2) {
|
||||||
// normalize absolute similarity to similarity rank (10 ranks in total),
|
// normalize absolute similarity to similarity rank (5 ranks in total),
|
||||||
// so we are less likely to fall for false positives in this pass, and move on to the next one
|
// so we are less likely to fall for false positives in this pass, and move on to the next one
|
||||||
return (float) (floor(super.getSimilarity(o1, o2) * 10) / 10);
|
return (float) (floor(super.getSimilarity(o1, o2) * 5) / 5);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user