From d73c248c5078be6661e87fe6bb95ba670844d258 Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Thu, 26 Sep 2019 23:46:56 +0300 Subject: Call tsv creator properly --- demo.sh | 3 ++- get_data.sh | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/demo.sh b/demo.sh index 1eb1f64..a60f435 100755 --- a/demo.sh +++ b/demo.sh @@ -20,7 +20,8 @@ # TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE # OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # -# + +set -o errexit -o pipefail -o noclobber -o nounset ROOT="$(pwd)" SCRIPTS="${ROOT}/scripts" diff --git a/get_data.sh b/get_data.sh index 91f790c..c8e9405 100755 --- a/get_data.sh +++ b/get_data.sh @@ -20,7 +20,8 @@ # TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE # OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # -# + +set -o errexit -o pipefail -o noclobber -o nounset ROOT="$(pwd)" SCRIPTS="${ROOT}/scripts" @@ -58,7 +59,7 @@ done for PAIR in en,bg en,el en,it, en,ro, en,sl en,sq, bg,el bg,it bg,ro el,it el,ro el,sq it,ro ro,sl ro,sq; do IFS=',' read -r source_lang target_lang <<< "${PAIR}" python "${SCRIPTS}/prep_lookup.py" -s "${source_lang}" -t "${target_lang}" - python "${SCRIPTS}/tsv_creator.py" "${source_lang}" "${target_lang}" + python "${SCRIPTS}/tsv_creator.py" "${source_lang}" "${target_lang}" "${source_lang}_to_${target_lang}.def" "${target_lang}_to_${source_lang}.def" done READY="${WNET}/ready" -- cgit v1.2.3-70-g09d2