(self)
| 1466 | } |
| 1467 | |
| 1468 | def aggregation(self) -> dict: |
| 1469 | return { |
| 1470 | "word_perplexity": weighted_perplexity, |
| 1471 | "byte_perplexity": weighted_perplexity, |
| 1472 | "bits_per_byte": bits_per_byte, |
| 1473 | } |
| 1474 | |
| 1475 | @classmethod |
| 1476 | def count_bytes(cls, doc) -> int: |
nothing calls this directly
no outgoing calls
no test coverage detected