IDF¶
-
class
matchup.structure.weighting.idf.
IDF
¶ Bases:
abc.ABC
Abstract base class who represents IDF param.
Methods Summary
generate
(vocabulary)Generate the idf for all keywords in a vocabulary take
(*, value, reverse)Take the first ‘value’ elements of IDF dict Methods Documentation
-
generate
(vocabulary) → None¶ - Generate the idf for all keywords in a vocabulary
Parameters: vocabulary – Vocabulary object Returns: None
-
take
(*, value: int = 0, reverse: bool = True)¶ - Take the first ‘value’ elements of IDF dict
Parameters: value – :param reverse : asc or desc. :return:
-