parser / udpipe2 /models-pdtc1.0 /evaluation_merge_em.sh
anasampa2's picture
Upload 151 files
ee0ec3d verified
raw
history blame
245 Bytes
#!/bin/sh
awk '
/exact-match/ { lemma_em=substr($0, match($0, /Lemmas:[0-9.]*/)); sub(/ .*$/, "", lemma_em); sub(/Lemmas:/, "LemmasEM:", lemma_em) }
/lemmaid-match/ { sub(/ lemmaid-match/, ""); sub(/UAS:/, lemma_em " UAS:"); print }
' "$@"