-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest_small_full_pipeline.sh
executable file
·44 lines (32 loc) · 1.11 KB
/
test_small_full_pipeline.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
40
41
42
43
44
#!/usr/bin/env bash
cd src
runid=dummy1
echo "starting dummy pipeline and generate files from scratch"
echo "perhaps cleaning up old filed"
rm predictions/charter_locations_$runid.json
rm predictions/NE_locations_$runid.json
rm resources/ENTITIES_$runid.json
rm resources/CANDIDATES_$runid.json
echo "starting joint resolution"
python main.py \
-runid $runid \
-log_level 1 \
-place_candidate_file_path resources/CANDIDATES_$runid.json \
-entity_file_path resources/ENTITIES_$runid.json \
-ner_method spacy \
-text_place_solver hillclimber \
--interpolate_missing_text_place_predictions \
--simple_candidate_extension \
--dummy_run
python add_automatic_centers_to_predictions.py \
-itinerary_file predictions/charter_locations_$runid.json \
-ner_place_file predictions/NE_locations_$runid.json \
--solve_jointly
# evaluate
python evaluate_with_gold_csv.py \
-input_file predictions/charter_locations_$runid-_centers_added.json \
-level macro
python evaluate_with_gold_csv.py \
-input_file predictions/NE_locations_$runid-_centers_added.json \
-level macro
cd ..