diff --git a/neuralogic/core/constructs/java_objects.py b/neuralogic/core/constructs/java_objects.py index 677b441a..115676af 100644 --- a/neuralogic/core/constructs/java_objects.py +++ b/neuralogic/core/constructs/java_objects.py @@ -302,7 +302,7 @@ def get_rule(self, rule): java_rule.setOffset(offset) if rule.metadata is not None: - java_rule.allowDuplicitGroundings = rule.metadata.duplicit_grounding + java_rule.allowDuplicitGroundings = bool(rule.metadata.duplicit_grounding) java_rule.setMetadata(self.get_metadata(rule.metadata, self.rule_metadata))