sourced.ml.core.models.ordered_df

Module Contents

class sourced.ml.core.models.ordered_df.OrderedDocumentFrequencies[source]

Bases:sourced.ml.core.models.DocumentFrequencies

Compatible with the original DocumentFrequencies. This model maintains the determinitic sequence of the tokens.

order[source]
construct(self, docs: int, tokfreqs: Iterable[Dict[str, int]])[source]
tokens(self)[source]
prune(self, threshold: int)[source]
greatest(self, max_size: int)[source]