Last active
July 6, 2018 02:07
-
-
Save b0noI/92fb37fb0e7fda12c7d5425a4367059e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| cd ~ | |
| cd nmt | |
| touch ~/content/output | |
| chat () { | |
| echo $1 > ~/content/input | |
| python3 $HOME/pre_processing.py ~/content/input >~/content/input.pre | |
| $HOME/subword-nmt/apply_bpe.py -c $HOME/code.bpe --vocabulary $HOME/vocab.train.bpe.a --vocabulary-threshold 5 < ~/content/input.pre > `/content/input.pre.bpe | |
| cd $HOME/nmt | |
| python -m nmt.nmt --out_dir=~/content/nmt_model --inference_input_file=~/content/input.pre.bpe --inference_output_file=~/content/output > /dev/null 2>&1 | |
| cat ~/content/output | |
| } | |
| chat "hi" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment