File: per.sh

package info (click to toggle)
apertium-eval-translator 1.2.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 188 kB
  • sloc: perl: 858; sh: 162; makefile: 7
file content (15 lines) | stat: -rwxr-xr-x 244 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh

SRC=$1
REF=$2
TEST=$3

if [[ $# -ne 3 ]]
then
  echo "Error: Wrong number of parameters"
  echo "USAGE: pwer.sh source reference test"
  exit 1
fi

apertium-eval-translator-line.pl -t $TEST -r $REF | grep "(PER)" | awk '{print $6}'