Skip to content

Commit

Permalink
save
Browse files Browse the repository at this point in the history
  • Loading branch information
dsmilkov committed Jan 22, 2024
1 parent ee67d3a commit 8d5ccb6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lilac/data/clustering.py
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,8 @@ def compute_category_titles(items: Iterator[Item]) -> Iterator[Item]:

def drop_temp_text_column(items: Iterator[Item]) -> Iterator[Item]:
for item in items:
del item[TEXT_COLUMN]
if TEXT_COLUMN in item:
del item[TEXT_COLUMN]
yield item

# Drop the temporary newline-concatenated text column and write the final output.
Expand Down

0 comments on commit 8d5ccb6

Please sign in to comment.