Open qwang0225 opened 1 year ago
I think there's syntax error in the code for defining add_pref
, I have provided a fix here:
ctx.add_rule("add_pref(w2+w1) :- word1(w1), opr(\"pref\"), word2(w2)")
Notice that for add_pref
you have an additional parenthesis and the string "pref" is not escaped.
Can you see whether this fixes the error?
Hi, I'm trying to define a relation that can apply operations like adding a prefix or suffix to a input word, the different operations would also be defined in a relation.
However, when I run I got an error saying opr takes no argument(expected 1), can you explain where went wrong? Thanks