(self, doc, results)
| 832 | return req |
| 833 | |
| 834 | def process_results(self, doc, results): |
| 835 | (loglikelihood,) = results |
| 836 | words = self.count_words(doc) |
| 837 | bytes_ = self.count_bytes(doc) |
| 838 | return { |
| 839 | "word_perplexity": (loglikelihood, words), |
| 840 | "byte_perplexity": (loglikelihood, bytes_), |
| 841 | "bits_per_byte": (loglikelihood, bytes_), |
| 842 | } |
| 843 | |
| 844 | def aggregation(self): |
| 845 | return { |
nothing calls this directly
no test coverage detected