Skip to content

Commit

Permalink
fix dataset forum export
Browse files Browse the repository at this point in the history
  • Loading branch information
ofilangi committed Oct 22, 2024
1 parent e8d799a commit 4f7a89a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions llm_semantic_annotator/abstract/abstract_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,8 @@ def build_dataset_abstracts_annotations(self):
'pmid' : pmid_list,
'reference_id' : reference_id_list
})
outf = self.config['retention_dir']+f"/QueryResultEntry_{abstracts_gen}.csv"
print(outf)
df.to_csv(outf, index=False)
if not df.empty:
outf = self.config['retention_dir']+f"/QueryResultEntry_{abstracts_gen}.csv"
print(outf)
df.to_csv(outf, index=False)

0 comments on commit 4f7a89a

Please sign in to comment.