diff --git a/medcat_service/nlp_processor/medcat_processor.py b/medcat_service/nlp_processor/medcat_processor.py index 02ee16c..111cee0 100644 --- a/medcat_service/nlp_processor/medcat_processor.py +++ b/medcat_service/nlp_processor/medcat_processor.py @@ -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(): @@ -327,8 +326,7 @@ 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 @@ -336,10 +334,7 @@ def _generate_result(self, in_documents, annotations, invalid_doc_idx, additiona 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: