Skip to content

Commit

Permalink
fix flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
parisa-zahedi committed Apr 11, 2024
1 parent ff5def9 commit 4fac926
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion interest/article_final_selection/article_selector.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ def select_articles(self) -> List[int]:

elif self.config["type"] == "percentage":
percentage = float(self.config["value"])
num_articles = int(len(self.similarity_scores) * (percentage / 100.0))
num_articles = int(len(self.similarity_scores) *
(percentage / 100.0))
selected_indices.extend(sorted_indices[:num_articles])

return selected_indices

0 comments on commit 4fac926

Please sign in to comment.