Download mosesdecoder/mert/example/memcheck_extractor.sh from suricodes/hindi-sindhi-docker: direct link, hf CLI and curl.
- Browser
- Download file 443 Bytes
-
https://huggingface.co/spaces/suricodes/hindi-sindhi-docker/resolve/main/mosesdecoder/mert/example/memcheck_extractor.sh
- Command line
-
hf download hf://spaces/suricodes/hindi-sindhi-docker/mosesdecoder/mert/example/memcheck_extractor.sh
-
curl -L -o memcheck_extractor.sh https://huggingface.co/spaces/suricodes/hindi-sindhi-docker/resolve/main/mosesdecoder/mert/example/memcheck_extractor.sh
443 Bytes
| extractor=../extractor | |
| VALGRIND_OPTS="--leak-check=full --leak-resolution=high \ | |
| --show-reachable=yes --track-origins=yes" | |
| VALGRIND="valgrind $VALGRIND_OPTS" | |
| for datafile in NBEST REF.0 REF.1 REF.2; do | |
| if ! [ -f $datafile ]; then | |
| echo "Error: $datafile does not exist." | |
| exit 1 | |
| fi | |
| done | |
| $VALGRIND $extractor --nbest NBEST --reference REF.0,REF.1,REF.2 \ | |
| --ffile FEATSTAT --scfile SCORESTAT --sctype BLEU | |