Fixed a bug where the CLI launcher was not closing predicates during inference.
@@ -215,7 +215,7 @@ public class Launcher {
Partition targetPartition = data.getPartition(PARTITION_NAME_TARGET);
Partition observationsPartition = data.getPartition(PARTITION_NAME_OBSERVATIONS);
Partition truthPartition = data.getPartition(PARTITION_NAME_LABELS);
- Database database = data.getDatabase(targetPartition, observationsPartition);
+ Database database = data.getDatabase(targetPartition, closedPredicates, observationsPartition);
// Inference
if (cmd.hasOption(OPERATION_INFER)) {
@@ -345,7 +345,6 @@ public class Launcher {
/*
* Runs PSL
*/
-
CommandLineParser parser = new DefaultParser();
CommandLine cmd = parser.parse(options, args);
new Launcher().run(cmd);
