m3hrdadfi commited on
Commit
e5ddbb7
1 Parent(s): db5385f

Fix data preparation

Browse files
src/preparaing_recipe_nlg_dataset.py CHANGED
@@ -93,10 +93,10 @@ def main():
93
  steps = item_dict["directions"]
94
 
95
  conditions = []
96
- conditions += filter_by_item(ner, 2)
97
- conditions += filter_by_length(title, 4)
98
- conditions += filter_by_item(ingredients, 2)
99
- conditions += filter_by_item(steps, 2)
100
  # conditions += filter_by_steps(" ".join(steps))
101
 
102
  if not all(conditions):
 
93
  steps = item_dict["directions"]
94
 
95
  conditions = []
96
+ conditions += [filter_by_item(ner, 2)]
97
+ conditions += [filter_by_length(title, 4)]
98
+ conditions += [filter_by_item(ingredients, 2)]
99
+ conditions += [filter_by_item(steps, 2)]
100
  # conditions += filter_by_steps(" ".join(steps))
101
 
102
  if not all(conditions):