simpful icon indicating copy to clipboard operation
simpful copied to clipboard

Defining custom rules instead of just "IS"

Open smejkka3 opened this issue 2 years ago • 2 comments

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?

smejkka3 avatar May 30 '22 16:05 smejkka3

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

aresio avatar Jun 01 '22 12:06 aresio

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.

smejkka3 avatar Jun 08 '22 05:06 smejkka3