Skip to content

Commit

Permalink
minor bug fix related to hearst prop overriding
Browse files Browse the repository at this point in the history
  • Loading branch information
sahitpj committed Aug 3, 2019
1 parent 3fd044b commit 6f4f821
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/hpatternUtils.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def add_hearst_patterns(templates, t, q_hearst_input):
else:
pattern = r'.*?NP_(\w+).*?({}).*?{}.*?NP_(\w+)'.format(verb, preposition)

heart_pattern = (pattern, template[2], verb+preposition.capitalize(), 3)
heart_pattern = (pattern, template[1], verb+preposition.capitalize(), 3)
hearst_patterns.append(heart_pattern)
return hearst_patterns, props
else:
Expand Down

0 comments on commit 6f4f821

Please sign in to comment.