transfix-mt/scripts/do_inject_prod.sh

17 lines
439 B
Bash
Raw Normal View History

2022-01-24 15:43:50 +01:00
#!/bin/bash
# arguments:
# 1. path to glossary file, E.g. for glossary in ~/data/glossary.tsv should be data/glossary.tsv
# 2. path to in.tsv file
# all path should be given as absolute path without ~/ at the very beginning (as seen in the example above)
glossary_path="$1"
in_path="$2"
source ~/gpu/bin/activate
cd ~/transfix-mt/scripts
python lemmatize_glossary.py "$glossary_path"
python inject_prod.py "$glossary_path" "$in_path"