Fine-tune movie match ranking
This commit is contained in:
parent
4cbba3a15f
commit
03afd09625
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue