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

Documentation of 'control' on rules #14

Open
adam-antonik opened this issue Jun 17, 2022 · 0 comments
Open

Documentation of 'control' on rules #14

adam-antonik opened this issue Jun 17, 2022 · 0 comments

Comments

@adam-antonik
Copy link

adam-antonik commented Jun 17, 2022

The section at the bottom of https://github.com/TeamCohen/TensorLog/wiki/Program mentions 'control' on rules, and gives an example using it:
r1,r2 = b.rule_ids("r1 r2") ... b.rules += aunt(X,Y) <= uncle(X,Z) & wife(Z,Y) // r1 b.rules += aunt(X,Y) <= parent(X,Z) & sister(Z,Y) // r2 b.rules += aunt(X,Y) <= uncle(X,Z) & wife(Z,Y) // (weight(F) | description(X,D) & feature(X,F))
I'm afraid I don't really understand what is going on here. Could you expand on what this 'control' is and does?

@adam-antonik adam-antonik changed the title Documentation of Documentation of 'control' on rules Jun 17, 2022
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