Skip to content

Commit d1dff74

Browse files
authored
Update freq.py
1 parent ee9763c commit d1dff74

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

pythainlp/summarize/freq.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,6 @@ def __init__(self, min_cut: float = 0.1, max_cut: float = 0.9) -> None:
2727
self.__max_cut: float = max_cut
2828
self.__stopwords: set[str] = set(punctuation).union(_STOPWORDS)
2929

30-
@staticmethod
31-
def __rank(ranking: dict[int, float], n: int) -> list[int]:
32-
return nlargest(n, ranking, key=lambda idx: ranking[idx])
33-
3430
def __compute_frequencies(
3531
self, word_tokenized_sents: list[list[str]]
3632
) -> dict[str, float]:

0 commit comments

Comments
 (0)