You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While using the Python SDK, it would be useful to construct the fact.yaml, rules.yaml etc programmatically. If these are translated into classes, perhaps expose that class and allow pr.load_rules(R) where R = pr.RulesClass()
The text was updated successfully, but these errors were encountered:
YAML files are no longer supported. Rules should be input into pyreason in string format.
You can load a single rule with pr.add_rule and load a file with a rule on each new line with pr.add_rules_from_file. Same with facts. An example of this can be seen here. Hope this helps.
Feature Request
While using the Python SDK, it would be useful to construct the
fact.yaml
,rules.yaml
etc programmatically. If these are translated into classes, perhaps expose that class and allowpr.load_rules(R)
whereR = pr.RulesClass()
The text was updated successfully, but these errors were encountered: