Skip to content

Commit a0aa342

Browse files
MasoudMasoud
Masoud
authored and
Masoud
committed
revised the filters arguments
1 parent e3a08b5 commit a0aa342

File tree

2 files changed

+15
-11
lines changed

2 files changed

+15
-11
lines changed

config.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -11,21 +11,21 @@
1111

1212
"normalize scores": "true",
1313
"emit scores": "false",
14-
"no out files": "true",
14+
"no out files": "false",
1515
"max decision": -1
1616
},
1717

1818
"policies": [
19-
["OneNo", "off"],
20-
["TwentyNo", "on"],
19+
["OneNo", "on"],
20+
["TwentyNo", "off"],
2121
["MajorityVoting", "off"]
2222
],
2323

2424
"filters": [
25-
["SampleFilter", "off"],
25+
["SampleFilter", "on"],
2626
["LengthStats", "off"],
2727

28-
["LengthRatio", "on"],
28+
["LengthRatio", "off"],
2929
["ReverseLengthRatio", "off"],
3030
["WordRatio", "off"],
3131
["ReverseWordRatio", "off"],

tm_manager.py

+10-6
Original file line numberDiff line numberDiff line change
@@ -116,25 +116,29 @@ def load_options_from_config_file(self):
116116
if 'output folder' not in self.options:
117117
print "The 'output folder' is not indicated in config file. It is set to default('output')."
118118
self.options['output folder'] = "output"
119+
120+
self.have_alignment = False
119121
if 'align file' in self.options:
120122
self.have_alignment = True
123+
124+
self.have_token = False
121125
if 'token file' in self.options:
122126
self.have_token = True
127+
128+
self.create_out_files = True
123129
if 'no out files' in self.options:
124130
if self.options['no out files'].lower() in ['true', 'yes', 'ok']:
125131
self.create_out_files = False
126-
else:
127-
self.create_out_files = True
132+
133+
self.normalize_scores = False
128134
if 'normalize scores' in self.options:
129135
if self.options['normalize scores'].lower() in ['true', 'yes', 'ok']:
130136
self.normalize_scores = True
131-
else:
132-
self.normalize_scores = False
137+
138+
self.have_scores = False
133139
if 'emit scores' in self.options:
134140
if self.options['emit scores'].lower() in ['true', 'yes', 'ok']:
135141
self.have_scores = True
136-
else:
137-
self.have_scores = False
138142

139143
# making the output folder
140144
path = os.getcwd() + "/" + self.options['output folder']

0 commit comments

Comments
 (0)