* fine-tuning
This commit is contained in:
parent
b6ebdfa49f
commit
787b3e241a
@ -141,17 +141,17 @@ public enum EpisodeMetrics implements SimilarityMetric {
|
|||||||
float sxe = EpisodeIdentifier.getSimilarity(o1, o2);
|
float sxe = EpisodeIdentifier.getSimilarity(o1, o2);
|
||||||
float title = Title.getSimilarity(o1, o2);
|
float title = Title.getSimilarity(o1, o2);
|
||||||
|
|
||||||
// allow title to override SxE only if series name also is a good match
|
|
||||||
if (sxe < 1 && title == 1 && SeriesName.getSimilarity(o1, o2) < 0.5f) {
|
|
||||||
title = 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
// account for misleading SxE patterns in the episode title
|
// account for misleading SxE patterns in the episode title
|
||||||
if (sxe < 0 && title == 1 && EpisodeIdentifier.getSimilarity(getTitle(o1), getTitle(o2)) == 1) {
|
if (sxe < 0 && title == 1 && EpisodeIdentifier.getSimilarity(getTitle(o1), getTitle(o2)) == 1) {
|
||||||
sxe = 1;
|
sxe = 1;
|
||||||
title = 0;
|
title = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// allow title to override SxE only if series name also is a good match
|
||||||
|
if (title == 1 && SeriesName.getSimilarity(o1, o2) < 0.5f) {
|
||||||
|
title = 0;
|
||||||
|
}
|
||||||
|
|
||||||
// 1:SxE && Title, 2:SxE
|
// 1:SxE && Title, 2:SxE
|
||||||
return (float) ((max(sxe, 0) * title) + (floor(sxe) / 10));
|
return (float) ((max(sxe, 0) * title) + (floor(sxe) / 10));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user