2
# maxent model symmetry check (-w 2) 2-grams with identical
3
# length must have identical reference weights (but lambda weights will differ).
7
prerequisite_command() {
8
type $2 2>&1 > /dev/null
10
echo "$1: $2 not found, test will be skipped"
15
prerequisite_command $0 grep
16
prerequisite_command $0 tr
17
prerequisite_command $0 sort
18
prerequisite_command $0 wc
20
DBACL_PATH="`pwd`/`basename $0 .sh`_`date +"%Y%m%dT%H%M%S"`"
25
echo "The quick brown fox jumped over the lazy dog" \
26
| $DBACL -l dummy -L uniform -d -q 2 \
31
> $DBACL_PATH/dummy.count
33
L=`cat $DBACL_PATH/dummy.count`
35
RESULT=`test x"$L" = x8`
b'\\ No newline at end of file'