simpful
simpful copied to clipboard
Defining custom rules instead of just "IS"
Would there be a way to define my custom fuzzy logic rules which use different format than “IS”. From what I was looking at the simpful code it only supports conditions as follow:
a “IS" b AND b "IS" c THEN a "IS” c
I need to define format as
a “SUBCLASS" b AND b “SUBCLASS" c THEN a “SUBCLASS" c. Or a “SUBCLASS" b AND x “TYPE" a THEN x “TYPE” b. And more custom rules as in the attached picture.
But looking at the https://github.com/aresio/simpful/blob/master/simpful/rule_parsing.py (line 4,5) the only rule which can be parsed is only the “IS” condition.
The question is if there is a way to define these rules without significantly modifying the source code which I might be missing?
Hi,
it would be technically possible to parse a different token while keeping the reasoner intact. However, we need to understand the rationale of your proposal first (because both "subclass" and "type" do not seem to represent fuzzy concepts). Can you please elaborate why you need this change in Simpful? Please send an e-mail to [email protected], I will answer asap.
Marco
Hi,
it would be technically possible to parse a different token while keeping the reasoner intact. However, we need to understand the rationale of your proposal first (because both "subclass" and "type" do not seem to represent fuzzy concepts). Can you please elaborate why you need this change in Simpful? Please send an e-mail to [email protected], I will answer asap.
Marco
I contacted you via email with more details.