Fine-tune movie match ranking

This commit is contained in:
Reinhard Pointner 2017-09-25 22:59:12 +07:00
parent 4cbba3a15f
commit 03afd09625
1 changed files with 2 additions and 2 deletions

View File

@ -716,9 +716,9 @@ public class MediaDetection {
@Override @Override
public float getSimilarity(Object o1, Object o2) { public float getSimilarity(Object o1, Object o2) {
return super.getSimilarity(o1, o2) * 2; // DOUBLE WEIGHT FOR YEAR MATCH return super.getSimilarity(o1, o2) * 1.4f; // extra weight for year match
} }
}, new MetricAvg(new SequenceMatchSimilarity(), new SequenceMatchSimilarity(0, true))); }, new SequenceMatchSimilarity(), new SequenceMatchSimilarity(0, true));
} }
public static Movie getLocalizedMovie(MovieIdentificationService service, Movie movie, Locale locale) throws Exception { public static Movie getLocalizedMovie(MovieIdentificationService service, Movie movie, Locale locale) throws Exception {