aac_metrics.classes.vocab module¶
- class Vocab(return_all_scores: bool = True, *, seed: None | int | ~torch._C.Generator = 1234, tokenizer: ~typing.Callable[[str], list[str]] = <method 'split' of 'str' objects>, dtype: ~torch.dtype = torch.float64, pop_strategy: ~typing.Literal['max', 'min'] | int = 'max', verbose: int = 0)[source]¶
Bases:
AACMetric[tuple[VocabScores,VocabScores] |Tensor]VocabStats class.
For more information, see
vocab().- compute() tuple[VocabScores, VocabScores] | Tensor[source]¶