forked from D-Net/dnet-hadoop
implementation parametrized for result type
This commit is contained in:
parent
ac7ec349cf
commit
24fa81d7e8
|
@ -28,7 +28,7 @@ public class SparkBulkTagJob2 {
|
|||
String jsonConfiguration =
|
||||
IOUtils.toString(
|
||||
SparkBulkTagJob2.class.getResourceAsStream(
|
||||
"/eu/dnetlib/dhp/input_bulktag_parameters.json"));
|
||||
"/eu/dnetlib/dhp/bulktag/input_bulktag_parameters.json"));
|
||||
|
||||
final ArgumentApplicationParser parser = new ArgumentApplicationParser(jsonConfiguration);
|
||||
|
||||
|
@ -74,7 +74,7 @@ public class SparkBulkTagJob2 {
|
|||
String taggingConf = parser.get("taggingConf");
|
||||
|
||||
if (isTest) {
|
||||
cc = CommunityConfigurationFactory.fromJson(taggingConf);
|
||||
cc = CommunityConfigurationFactory.newInstance(taggingConf);
|
||||
} else {
|
||||
cc = QueryInformationSystem.getCommunityConfiguration(parser.get("isLookupUrl"));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue