-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbulk_generate_forms.sh
executable file
·39 lines (27 loc) · 1.69 KB
/
bulk_generate_forms.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#! /bin/bash
set -xe
export COMPILED="BUILD/compiled.js"
export ASPAN_JS="BUILD/aspan.js"
export GENERATOR="scripts/bulk_generate.js"
export INPUT_VERBS="data/verbs_kk.v2.csv"
export OUTPUT_DETECTOR_FORMS="data/detector_forms.csv"
export OUTPUT_DETECT_SUGGEST_FORMS="data/detect_suggest_forms.20250103.jsonl"
export OUTPUT_SUGGEST_INFINITIVE_TRANSLATION="data/suggest_infinitive_translation.csv"
export OUTPUT_VERBS_WITH_META="data/verbs_fe_soft.csv"
export OUTPUT_TESTSET="data/verb_testset.20241215.jsonl"
tsc --lib es2015 src/*.ts -t es6 -outFile $COMPILED
# add lines that export stuff
cat $COMPILED module_export.js > $ASPAN_JS
# node $GENERATOR detector_forms ${INPUT_VERBS} ${OUTPUT_DETECTOR_FORMS}
# echo "Generated detector forms data is stored to ${OUTPUT_DETECTOR_FORMS}."
node $GENERATOR detect_suggest_forms ${INPUT_VERBS} ${OUTPUT_DETECT_SUGGEST_FORMS}
echo "Generated detector+suggest forms data is stored to ${OUTPUT_DETECT_SUGGEST_FORMS}."
# node $GENERATOR suggest_infinitive_translation ${INPUT_VERBS} ${OUTPUT_SUGGEST_INFINITIVE_TRANSLATION}
# echo "Generated infinitive and translation suggest data is stored to ${OUTPUT_SUGGEST_INFINITIVE_TRANSLATION}."
# export OUTPUT_PRESENT_CONTINUOUS_FORMS="data/present_continuous_forms.csv"
# node $GENERATOR present_continuous_forms ${INPUT_VERBS} ${OUTPUT_PRESENT_CONTINUOUS_FORMS}
# echo "Generated present continuous forms data is stored to ${OUTPUT_PRESENT_CONTINUOUS_FORMS}."
# node $GENERATOR verbs_with_meta ${INPUT_VERBS} ${OUTPUT_VERBS_WITH_META}
# echo "Generated verbs with meta data is stored to ${OUTPUT_VERBS_WITH_META}."
#node $GENERATOR testset ${INPUT_VERBS} ${OUTPUT_TESTSET}
#echo "Generated verb testset is stored to ${OUTPUT_TESTSET}."