From ab9d75ac54ef687d85673f67a139f092d26b4cfc Mon Sep 17 00:00:00 2001 From: Diego Miguel Date: Sun, 13 Oct 2024 14:43:24 +0200 Subject: [PATCH] Update tests --- tests/data.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tests/data.py b/tests/data.py index e72d989..9f2f6c0 100644 --- a/tests/data.py +++ b/tests/data.py @@ -27,8 +27,6 @@ ("I'll be excited.", "I will not be excited.", False), ("I will be excited.", "I won't be excited.", True), ("I will be excited.", "I will not be excited.", False), - ("She's determined.", "She isn't determined.", True), - ("She's determined.", "She is not determined.", False), ("She's excited.", "She isn't excited.", True), ("She's excited.", "She is not excited.", False), ("She is excited.", "She isn't excited.", True), @@ -244,8 +242,6 @@ ("I used to love hiking.", "I did not use to love hiking.", False), ("I really liked the food.", "I really didn't like the food.", True), ("I really liked the food.", "I really did not like the food.", False), - ("A small Python module negating sentences.", "A small Python module not negating sentences.", False), - ("A small Python module negating sentences.", "A small Python module not negating sentences.", True), ("A small Python module to negate sentences.", "A small Python module to not negate sentences.", False), ("A small Python module to negate sentences.", "A small Python module to not negate sentences.", True) ] @@ -403,6 +399,8 @@ ("I do.", "I do not.", False), # "do" classified as VERB instead of AUX. ("She does.", "She doesn't.", True), # "do" classified as VERB instead of AUX. ("She does.", "She does not.", False), # "do" classified as VERB instead of AUX. + ("A small Python module negating sentences.", "A small Python module not negating sentences.", False), + ("A small Python module negating sentences.", "A small Python module not negating sentences.", True), # Connectors. ("It also prohibits or restricts the use of certain mechanisms.", "It also doesn't prohibit or restrict the use of certain mechanisms.", True), # Boolean logic, e.g.: "prohibits AND restricts" -> "doesn't prohibit OR restrict" @@ -413,4 +411,7 @@ ("You ought not to do it.", "You ought to do it.", False), ("You ought to do it.", "You oughtn't do it.", True), ("You oughtn't do it.", "You ought to do it.", True), + # Ambiguous. + ("She's determined.", "She isn't determined.", True), + ("She's determined.", "She is not determined.", False), ]