We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ee9763c commit d1dff74Copy full SHA for d1dff74
1 file changed
pythainlp/summarize/freq.py
@@ -27,10 +27,6 @@ def __init__(self, min_cut: float = 0.1, max_cut: float = 0.9) -> None:
27
self.__max_cut: float = max_cut
28
self.__stopwords: set[str] = set(punctuation).union(_STOPWORDS)
29
30
- @staticmethod
31
- def __rank(ranking: dict[int, float], n: int) -> list[int]:
32
- return nlargest(n, ranking, key=lambda idx: ranking[idx])
33
-
34
def __compute_frequencies(
35
self, word_tokenized_sents: list[list[str]]
36
) -> dict[str, float]:
0 commit comments