Revision 57632
Added by Claudio Atzori over 4 years ago
modules/dnet-mapreduce-jobs/trunk/src/main/java/eu/dnetlib/data/mapreduce/hbase/broker/OrcidEventFactory.java | ||
---|---|---|
110 | 110 |
private Float distance(final FieldTypeProtos.Author a, final FieldTypeProtos.Author b) { |
111 | 111 |
final JaroWinkler jaroWinkler = new JaroWinkler(1.0); |
112 | 112 |
if (a.hasSurname() && b.hasSurname()) { |
113 |
return (float) jaroWinkler.distance(getCanonicalName(a), getCanonicalName(b), null);
|
|
113 |
return (float) jaroWinkler.distance(getCanonicalName(a), getCanonicalName(b)); |
|
114 | 114 |
|
115 | 115 |
} else { |
116 |
return (float) jaroWinkler.distance(a.getFullname(), b.getFullname(), null);
|
|
116 |
return (float) jaroWinkler.distance(a.getFullname(), b.getFullname()); |
|
117 | 117 |
} |
118 | 118 |
} |
119 | 119 |
|
modules/dnet-mapreduce-jobs/trunk/pom.xml | ||
---|---|---|
198 | 198 |
<version>[6.3.25,7.0.0)</version> |
199 | 199 |
</dependency> |
200 | 200 |
<dependency> |
201 |
<groupId>eu.dnetlib</groupId> |
|
202 |
<artifactId>dnet-pace-core</artifactId> |
|
203 |
<version>[3.0.14]</version> |
|
204 |
</dependency> |
|
205 |
<dependency> |
|
201 | 206 |
<groupId>org.antlr</groupId> |
202 | 207 |
<artifactId>stringtemplate</artifactId> |
203 | 208 |
<version>3.2</version> |
... | ... | |
234 | 239 |
</dependency> |
235 | 240 |
|
236 | 241 |
<dependency> |
242 |
<groupId>saxonica</groupId> |
|
243 |
<artifactId>saxon</artifactId> |
|
244 |
<version>9.1.0.8</version> |
|
245 |
</dependency> |
|
246 |
|
|
247 |
<dependency> |
|
248 |
<groupId>saxonica</groupId> |
|
249 |
<artifactId>saxon-dom</artifactId> |
|
250 |
<version>9.1.0.8</version> |
|
251 |
</dependency> |
|
252 |
|
|
253 |
<dependency> |
|
237 | 254 |
<groupId>eu.dnetlib.dhp</groupId> |
238 | 255 |
<artifactId>dhp-schemas</artifactId> |
239 | 256 |
<version>[1.0.0,2.0.0)</version> |
Also available in: Unified diff
limit the dnet-pace-core dependency to use version 3.0.14, i.e. prior to the introduction of the translation map in the configuration