Skip to content

Commit

Permalink
Linting fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
vladd-bit committed Aug 2, 2023
1 parent fca0a2f commit 920dccf
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions medcat_service/nlp_processor/medcat_processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,6 @@ def _generate_result(self, in_documents, annotations, invalid_doc_idx, additiona
:return:
"""


for i in range(len(in_documents)):
in_ct = in_documents[i]
if i in annotations.keys():
Expand All @@ -327,19 +326,15 @@ def _generate_result(self, in_documents, annotations, invalid_doc_idx, additiona
out_res = {"text": str(in_ct["text"]),
"annotations": entities,
"success": True,
"timestamp": NlpProcessor._get_timestamp(),
}
"timestamp": NlpProcessor._get_timestamp()}
out_res.update(additional_info)
else:
# Don't fetch an annotation set
# as the document was invalid
out_res = {"text": in_ct["text"],
"annotations": [],
"success": True,
"timestamp": NlpProcessor._get_timestamp()
}


"timestamp": NlpProcessor._get_timestamp()}

# append the footer
if "footer" in in_ct:
Expand Down

0 comments on commit 920dccf

Please sign in to comment.