Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possible inconsistency in respecting max rule length setting #70

Open
kliegr opened this issue Oct 6, 2021 · 0 comments
Open

Possible inconsistency in respecting max rule length setting #70

kliegr opened this issue Oct 6, 2021 · 0 comments

Comments

@kliegr
Copy link

kliegr commented Oct 6, 2021

tasks_and_rules.zip
Task 1: Max rule length is set to 5, but the task returns only rules of length 4.

The antecedent contains three predicate patterns and the "Exact" option is off. One of the antecedent patterns is

 ( ?a <category> Any ).  

In all five discovered rules, there is a corresponding atom with the object position replaced by a constant:

( ?a <category> <Drug> )
( ?a <category> <Drug> )
( ?a <category> <NamedThing> )
( ?a <category> <ChemicalSubstance> )
( ?a <category> <Gene> )

Task 2: The setting is the same as Task 1, only the pattern

  ( ?a <category> Any )

is replaced by

  ( ?a <category> <Drug> )

in an attempt to obtain only drugs on the output.

Task 2 returns 10.000 rules mostly of length 5.

It looks like the inconsistency is in Task 1 as it returns only rules of length 4 despite the max rule length of 5.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant