Skip to content

Commit 080988d

Browse files
committed
add l2 experiments to Makefile and make run_experiment_l2 take a language argument
1 parent 5f0eed8 commit 080988d

File tree

4 files changed

+13
-1
lines changed

4 files changed

+13
-1
lines changed

L1pickle/README

Whitespace-only changes.

L2pickle/README

Whitespace-only changes.

src/Makefile

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,18 @@ l1_exp_it:
3737
l1_exp_nl:
3838
./run_one_l1_language.sh nl
3939

40+
l2experiments: l2_exp_de l2_exp_es l2_exp_fr l2_exp_it l2_exp_nl
41+
l2_exp_de:
42+
python3 run_experiment_l2.py de
43+
l2_exp_es:
44+
python3 run_experiment_l2.py es
45+
l2_exp_fr:
46+
python3 run_experiment_l2.py fr
47+
l2_exp_it:
48+
python3 run_experiment_l2.py it
49+
l2_exp_nl:
50+
python3 run_experiment_l2.py nl
51+
4052
## target to extract all the training data in parallel
4153
extract_all_training: extract_de extract_es extract_fr extract_it extract_nl
4254
extract_de:

src/run_experiment_l2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def test_level2(sourceword,target):
4747

4848
def main():
4949
#all_words = "bank coach education execution figure job letter match mission mood movement occupation paper passage plant post pot range rest ring scene side soil strain test".split()
50-
all_target_languages = "de es fr it nl".split()
50+
all_target_languages = [sys.argv[1]]
5151

5252
all_words = util_run_experiment.final_test_words
5353
stanford.taggerhome = '/home/liucan/stanford-postagger-2012-11-11'

0 commit comments

Comments
 (0)