Skip to content

Commit

Permalink
Refactored conditional statement in langtest.py
Browse files Browse the repository at this point in the history
  • Loading branch information
chakravarthik27 committed Nov 9, 2023
1 parent 1f1932e commit 6815260
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion langtest/langtest.py
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,7 @@ def report(

summary = defaultdict(lambda: defaultdict(int))

if self.task == "political":
if self.task.category == "ideology":
self.df_report = report.political_report(self._generated_results)
return self.df_report

Expand Down

0 comments on commit 6815260

Please sign in to comment.