-
Notifications
You must be signed in to change notification settings - Fork 2
/
run_LS_Paraphraser.multi.ls07.sh
39 lines (29 loc) · 1.08 KB
/
run_LS_Paraphraser.multi.ls07.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
##NNSeval
#python3 Substitute_Para.py \
# --eval_dir "data/swords-v1.1_test.json" \
# --paraphraser_path "checkpoints/para/transformer/" \
# --paraphraser_model "checkpoint_best.pt" \
# --bpe "subword_nmt" \
# --bpe_codes "data/para/codes.40000.bpe.en" \
# --paraphraser_dict 'data-bin/para/' \
# --output_SR_file "results/swords-v1.1_test_mygenerator.lsr.json"
# TEST_FILE=data/LS07/test/lst_test.preprocessed
# TEST_GOLDEN_FILE=data/LS07/test/lst_test.gold
# OUTPUT=results/ls07/ls07.out
# OUTPUT_SCORE=results/ls07/ls07.scores.out
TEST_FILE=data/LS07/test/lst_test.preprocessed
TEST_GOLDEN_FILE=data/LS07/test/lst_test.gold
OUTPUT=ls07.out
OUTPUT_SCORE=ls07.scores.out
python3 LSPara.multi.ls07.py \
--eval_dir $TEST_FILE \
--eval_gold_dir $TEST_GOLDEN_FILE \
--paraphraser_path "checkpoints/para/transformer/" \
--paraphraser_model "checkpoint_best.pt" \
--bpe "subword_nmt" \
--bpe_codes "checkpoints/para/transformer/codes.40000.bpe.en" \
--beam 100 \
--bertscore -100 \
--output_SR_file $OUTPUT \
--output_score_file $OUTPUT_SCORE
#--paraphraser_dict None \