Skip to content

Commit 4e32231

Browse files
authored
Merge pull request #121 from AlexNikic/main
#120 bug fix: fixed process_questions in matcher.py so that unit test does not fail
2 parents 844c7b4 + 534ce23 commit 4e32231

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/harmony/matching/matcher.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,10 @@ def process_questions(questions: list, texts_cached_vectors: dict, is_negate: bo
134134
text_vectors = add_text_to_vec(question_text, texts_cached_vectors, text_vectors, False, False)
135135

136136
if is_negate:
137-
negated_text = negate(question_text, "en")
138-
text_vectors = add_text_to_vec(negated_text, texts_cached_vectors, text_vectors, True, False)
137+
negated_text = negate(question_text, 'en')
138+
else:
139+
negated_text = question_text
140+
text_vectors = add_text_to_vec(negated_text, texts_cached_vectors, text_vectors, True, False)
139141

140142
return text_vectors
141143

0 commit comments

Comments
 (0)