Skip to content

Commit

Permalink
🐛 Fixed TypeError when printing DatasetWithEntities (#4)
Browse files Browse the repository at this point in the history
Signed-off-by: Marcos Martinez <Marcos.Martinez.Galindo@ibm.com>
  • Loading branch information
marmg committed Sep 28, 2022
1 parent bf4fbe8 commit cb7af04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zshot/evaluation/dataset/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ def from_dict(

def __repr__(self):
return f"Dataset({{\n features: {list(self.features.keys())},\n num_rows: {self.num_rows}," \
f"\n entities: {[ent['label'] for ent in self.entities if self.entities is not None]}\n}})"
f"\n entities: {[ent.name for ent in self.entities if self.entities is not None]}\n}})"

0 comments on commit cb7af04

Please sign in to comment.