Skip to content

Commit

Permalink
fix: bug in extract_dict causing only the first metric to to extracted
Browse files Browse the repository at this point in the history
  • Loading branch information
HLasse committed Dec 30, 2022
1 parent ea1345e commit 94f3c68
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/textdescriptives/extract.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,8 @@ def extract_dict(
"'metrics' contained invalid metric.\n"
+ f"Valid metrics are: {valid_metrics}",
)

extracted_metrics: Dict[str, Any] = {}
for component in metrics:
extracted_metrics: Dict[str, Any] = {}
if component == "quality":
extracted_metrics.update(__get_quality(docs))
elif component == "descriptive_stats":
Expand Down

0 comments on commit 94f3c68

Please sign in to comment.