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