forked from GitHub/gf-core
solve the ambiguity for double negation in SUMO
This commit is contained in:
@@ -29,10 +29,10 @@ lin
|
|||||||
|
|
||||||
and f1 f2 = {s = \\f,c => f1.s ! Indep ! c ++ "and" ++ f2.s ! Indep ! c; flag = NothingS; lock_PolSentence = <>};
|
and f1 f2 = {s = \\f,c => f1.s ! Indep ! c ++ "and" ++ f2.s ! Indep ! c; flag = NothingS; lock_PolSentence = <>};
|
||||||
or f1 f2 = {s = \\f,c => f1.s ! Indep ! c ++ "or" ++ f2.s ! Indep ! c; flag = NothingS; lock_PolSentence = <>};
|
or f1 f2 = {s = \\f,c => f1.s ! Indep ! c ++ "or" ++ f2.s ! Indep ! c; flag = NothingS; lock_PolSentence = <>};
|
||||||
not f1 = {s = \\f,c => case c of {
|
not f1 = {s = \\f => table {
|
||||||
Neg => f1.s ! f ! Pos ;
|
Neg => "it is not true that" ++ f1.s ! f ! Neg ;
|
||||||
Pos => f1.s ! Indep ! Neg
|
Pos => f1.s ! Indep ! Neg
|
||||||
};
|
};
|
||||||
flag = f1.flag;
|
flag = f1.flag;
|
||||||
lock_PolSentence = <>
|
lock_PolSentence = <>
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user