pbr-private/translate.sh
2022-05-22 15:47:22 +01:00

17 lines
322 B
Bash
Executable File

#!/bin/bash
# first arg should be text to translate
# second (optional) arg should be additional dictionary
mkdir data
cp "$1" data/text.txt
if [ ! -z "$2" ]
then
: cp "$2" data/dictionary.tsv
fi
# TODO inject dictionary - current model does not utilize addition dictionary anyway
pytohn translate.py
rm -rf data