commit 43b2234597f7702638dc24e0da2d8f26b43cca19 Author: Tanmai Khanna Date: Wed Aug 12 02:35:02 2020 +0530 variable lemma clipping test for rtx diff --git a/tests/WblankVariable.input b/tests/WblankVariable.input new file mode 100644 index 0000000..47c6057 --- /dev/null +++ b/tests/WblankVariable.input @@ -0,0 +1,3 @@ +[[t:b:123abc]]^the/el$ [[t:i:asfkl3]]^green/verde$ [[t:s:098sjd]]^dragon/dragón$ [[t:b:po234f]]^sleep/duerme$[[t:b:8snx23]]^./.$ +[[t:i:xyzkm2]]^the/el$ [[t:n:124fcd]]^green/verde$ [[t:b:832dax]]^dragon/dragón$ [[t:s:24nda1]]^sleep/duerme$[[t:i:512rw9]]^./.$ + diff --git a/tests/WblankVariable.output b/tests/WblankVariable.output new file mode 100644 index 0000000..9e5c65e --- /dev/null +++ b/tests/WblankVariable.output @@ -0,0 +1,3 @@ +[[t:b:123abc]]^el$ [[t:s:098sjd]]^dragón$ [[t:i:asfkl3]]^verde$ [[t:b:po234f]]^duerme$[[t:b:8snx23]]^.$ +[[t:i:xyzkm2]]^el$ [[t:b:832dax]]^dragón$ [[t:n:124fcd]]^verde$ [[t:s:24nda1]]^duerme$[[t:i:512rw9]]^.$ + diff --git a/tests/WblankVariable.rtx b/tests/WblankVariable.rtx new file mode 100644 index 0000000..5729ffb --- /dev/null +++ b/tests/WblankVariable.rtx @@ -0,0 +1,12 @@ +n: _.gender.number; +adj: _.gender.number; +vblex: _.number; +NP: _; +V: _; + +gender = m f mf; +number = sg pl sp; + +NP -> adj %n [$%number=2.number/tl,$%lemvar=1.lemh/tl] { 2 _1 1[lemh=$%lemvar,number=2.number/sl] } ; + +V -> %vblex [$%number=(if ($%number = "") sg else $%number),$%lemvar=1.lemh/tl] { 1[lemh=$%lemvar,number=$%number] } ;