Skip to content
This repository has been archived by the owner on Apr 5, 2024. It is now read-only.

Commit

Permalink
fix var name
Browse files Browse the repository at this point in the history
  • Loading branch information
charhart committed Dec 9, 2019
1 parent 564650b commit 4ddc657
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nlp/custom_tasks/PregnancyTask.py
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ def run_custom_task(self, temp_file, mongo_client: MongoClient):
date_conception, date_delivery = _compute_pregnancy_term(weeks, doc_date)
highlights = []
if start > -1:
if len(s) > end - 1:
if len(sentence) > end - 1:
end = end - 1
string = sentence[start:end]
highlights.append(string)
Expand Down

0 comments on commit 4ddc657

Please sign in to comment.