Skip to content

Instantly share code, notes, and snippets.

View Chung-I's full-sized avatar

Zhong-Yi Li Chung-I

  • Department of Electrical Engineering, National Taiwan University
  • Taipei, Taiwan
View GitHub Profile
@pohanchi
pohanchi / listen.sh
Last active December 14, 2021 15:31
TWCC-CLI Tools
#put it in your remote server
screen -ls | grep longjob | awk ' { print $1 }'

Our dearest script that everyone uses in the modern #neuralempty revolution in machine translation is multi-bleu.perl

But consider this:

alvas@ubi:~/git/mosesdecoder/scripts/generic$ perl multi-bleu.perl 
Use of uninitialized value $ARGV[0] in string eq at multi-bleu.perl line 11.
usage: multi-bleu.pl [-lc] reference < hypothesis
Reads the references from reference or reference0, reference1, ...
alvas@ubi:~/git/mosesdecoder/scripts/generic$ python3 -c "open('hyp.txt', 'w').write('foo bar\n')"