code formatting

This commit is contained in:
Claudio Atzori 2023-12-01 15:14:17 +01:00
parent c5ac593c07
commit d33f578e54
1 changed files with 256 additions and 255 deletions

View File

@ -4,14 +4,16 @@ package eu.dnetlib.dhp.oa.merge;
import java.text.Normalizer;
import java.util.*;
import java.util.stream.Collectors;
import org.apache.commons.lang3.StringUtils;
import com.wcohen.ss.JaroWinkler;
import eu.dnetlib.dhp.schema.oaf.Author;
import eu.dnetlib.dhp.schema.oaf.StructuredProperty;
import eu.dnetlib.pace.model.Person;
import scala.Tuple2;
public class AuthorMerger {
private static final Double THRESHOLD = 0.95;
@ -132,7 +134,6 @@ public class AuthorMerger {
.trim();
}
private static String authorFieldToBeCompared(Author author) {
if (StringUtils.isNotBlank(author.getSurname())) {
return author.getSurname();