From eccfe100b66e99b088a3ba076f9f7e873b15d81a Mon Sep 17 00:00:00 2001 From: Ezra Keshet Date: Sun, 20 Mar 2022 18:34:30 -0400 Subject: [PATCH] capture != SemLiterals --- phosphorus/semval.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/phosphorus/semval.py b/phosphorus/semval.py index 25ed3e3..cd272ca 100644 --- a/phosphorus/semval.py +++ b/phosphorus/semval.py @@ -57,6 +57,9 @@ def __invert__(self): return SpanVal("¬" + self) def __eq__(self,other): return opcode(self, "==", other) + def __ne__(self,other): + return opcode(self, "!=", other) + # Since SemLiterals do not have a known value, we don't want them # short-circuiting boolean "and" and "or" in python. # We use & and | instead