-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathlabel-frames-dataset.sh
executable file
·38 lines (27 loc) · 1.7 KB
/
label-frames-dataset.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
#!/bin/sh
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT license.
I=data/frames.json
O=data/tagged.json
FREX=frametracking-tagger
mkdir -p data
if [ ! -e $I ]; then
echo "Please download $I from https://www.microsoft.com/en-us/research/project/frames-dataset/#!download"
exit 1
fi
# frame changed, using switch_frame
python $FREX --saveas $O $I author user active-frame-changed has-act switch_frame tag --clear-first framechange.switch_frame
python $FREX --saveas $O $O author user active-frame-changed has-act switch_frame prev-has-act 'offer suggest' tag framechange.switch_frame.offer
python $FREX --saveas $O $O author user active-frame-changed has-act switch_frame prev-has-no-act 'offer suggest' tag framechange.switch_frame.nooffer
python $FREX --saveas $O $O author user active-frame-changed has-act switch_frame has-act --allowed-slot-args '' switch_frame tag framechange.switch_frame.noargs
python $FREX --saveas $O $O author user has-act request_compare tag reqcomp
# frame changed with value
python $FREX --saveas $O $O author user active-frame-changed has-act -i switch_frame tag framechange.valuechange
# noframechange
python $FREX --saveas $O $O author user active-frame-changed -i has-act -i switch_frame tag noframechange
# noframechange, with preceding offer
python $FREX --saveas $O $O author user active-frame-changed -i prev-has-act 'offer suggest' tag noframechange.offer
# noframechange, without preceding offer
python $FREX --saveas $O $O author user active-frame-changed -i prev-has-no-act 'offer suggest' tag noframechange.nooffer
python $FREX --saveas $O $O author user has-noanno tag noanno
python $FREX --saveas $O $O author user has-noanno -i tag no_noanno