Skip to content

Commit ff978d2

Browse files
committed
change to method no
1 parent 7981b50 commit ff978d2

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
3. ` $ chmod +x ./tira_run.sh `
2020
4. ` $ ./tira_run.sh -s <run-type> -i $inputDataset -o $outputDir `
2121
- Run Types
22-
- ` None `: No sentiments
22+
- ` no `: No sentiments
2323
- ` emotional `: Emotional is better
2424
- ` neutral `: Neutral is better
2525

@@ -32,7 +32,7 @@
3232
3. ` $ docker run -e RUN_TYPE=<run-type> -v <input-dir-path>:/input -v <output-dir-path>:/output --name argu --rm -it --network="host" argu `
3333
- Runs the ArgU container
3434
- Run Types
35-
- ` None `: No sentiments
35+
- ` no `: No sentiments
3636
- ` emotional `: Emotional is better
3737
- ` neutral `: Neutral is better
3838
- Input directory with args-me.json and topics.xml
@@ -60,7 +60,7 @@
6060
5. ` $ python -m argU -d `
6161
- Compare given queries with argument embeddings; store Top-N DESM scores into MongoDB
6262
6. Merge DESM, Terrier and Sentiments to create final scores
63-
1. ` $ python -m argU -m -s None -o <output-dir-path> `
63+
1. ` $ python -m argU -m -s no -o <output-dir-path> `
6464
* R1: No sentiments
6565
2. ` $ python -m argU -m -s emotional -o <output-dir-path> `
6666
* R2: Emotional is better

argU/__main__.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -144,11 +144,11 @@
144144
output_dict[query_id] = merged_args
145145

146146
with open(os.path.join(argparsed.output, 'run.txt'), 'w') as f_out:
147-
mehtod = setup.METHOD_NONE
147+
method = setup.METHOD_NO
148148
if argparsed.sentiments == 'emotional':
149-
mehtod = setup.METHOD_EMOTIONAL
149+
method = setup.METHOD_EMOTIONAL
150150
elif argparsed.sentiments == 'neutral':
151-
mehtod = setup.METHOD_NEUTRAL
151+
method = setup.METHOD_NEUTRAL
152152
for (id, args) in output_dict.items():
153153
for i, (arg_id, score, sent) in enumerate(args):
154154
f_out.write(' '.join([

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
'quoting': csv.QUOTE_MINIMAL,
4242
}
4343

44-
METHOD_NONE = 'ulT1DetroitnitzCbowDPHSentNone'
44+
METHOD_NO = 'ulT1DetroitnitzCbowDPHSentNo'
4545
METHOD_EMOTIONAL = 'ulT1DetroitnitzCbowDPHSentEmotional'
4646
METHOD_NEUTRAL = 'ulT1DetroitnitzCbowDPHSentNeutral'
4747

0 commit comments

Comments
 (0)