mirror of
https://github.com/mitb-archive/filebot
synced 2024-11-14 21:35:03 -05:00
* tuned name similarity ranking
This commit is contained in:
parent
53dd17d93a
commit
4388f47317
@ -97,9 +97,9 @@ class MatchAction extends AbstractAction {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public float getSimilarity(Object o1, Object o2) {
|
public float getSimilarity(Object o1, Object o2) {
|
||||||
// normalize absolute similarity to similarity rank (20 ranks in total),
|
// normalize absolute similarity to similarity rank (10 ranks in total),
|
||||||
// so we are less likely to fall for false positives
|
// so we are less likely to fall for false positives in this pass, and move on to the next one
|
||||||
return (float) (Math.floor(super.getSimilarity(o1, o2) * 20) / 20);
|
return (float) (Math.floor(super.getSimilarity(o1, o2) * 10) / 10);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -107,7 +107,7 @@ class VerificationFileScanner implements Iterator<Entry<File, String>>, Closeabl
|
|||||||
|
|
||||||
|
|
||||||
protected boolean isComment(String line) {
|
protected boolean isComment(String line) {
|
||||||
return line.startsWith(";") || line.isEmpty();
|
return line.isEmpty() || line.startsWith(";");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user