* update here as well
This commit is contained in:
parent
b4532f1832
commit
85b4b69398
|
@ -29,7 +29,7 @@ public class NameSimilarityMetric implements SimilarityMetric {
|
|||
String name = object.toString();
|
||||
|
||||
// normalize separators
|
||||
name = name.replaceAll("[\\p{Punct}\\p{Space}]+", " ");
|
||||
name = name.replaceAll("['`´]+", "").replaceAll("[\\p{Punct}\\p{Space}]+", " ");
|
||||
|
||||
// normalize case and trim
|
||||
return name.trim().toLowerCase();
|
||||
|
|
|
@ -20,7 +20,7 @@ public class SubstringMetric implements SimilarityMetric {
|
|||
String name = object.toString();
|
||||
|
||||
// normalize separators
|
||||
name = name.replaceAll("[\\p{Punct}\\p{Space}]+", " ");
|
||||
name = name.replaceAll("['`´]+", "").replaceAll("[\\p{Punct}\\p{Space}]+", " ");
|
||||
|
||||
// normalize case and trim
|
||||
return name.trim().toLowerCase();
|
||||
|
|
Loading…
Reference in New Issue