commit 2953ae3a6aaf2365dbbf9738b58bb619f392f03c Author: Tanmai Khanna Date: Thu Jul 16 02:17:05 2020 +0530 add test for wordbound blank analysis diff --git a/tests/lt_proc/__init__.py b/tests/lt_proc/__init__.py index ba77a21..29cbfe3 100644 --- a/tests/lt_proc/__init__.py +++ b/tests/lt_proc/__init__.py @@ -130,5 +130,14 @@ class CatMultipleFstsTransducer(unittest.TestCase, ProcTest): inputs = ["cat", "cats"] expectedOutputs = ["^cat/cat+n/cat+v$", "^cats/cat+n+$"] +class WordboundBlankAnalysisTest(unittest.TestCase, ProcTest): + procdix = "data/gardenpath-mwe.dix" + inputs = ["x [[t:i:123456]]opp.", + "[[t:b:456123; t:i:90hfbn]]legge [[t:s:xyz789]]opp opp [[t:b:abc124]]x opp.", + ] + expectedOutputs = ["^x/*x$ [[t:i:123456]]^opp/opp$^./.$", + "[[t:b:456123; t:i:90hfbn]]^legge/legge$ [[t:s:xyz789]]^opp/opp$ ^opp/opp$ [[t:b:abc124]]^x/*x$ ^opp/opp$^./.$", + ] + # These fail on some systems: #from null_flush_invalid_stream_format import *