Take a single document and the LM results and evaluates, returning a dict where keys are the names of submetrics and values are the values of the metric for that one document :param doc: The document as returned from training_docs, validation_docs, or test_docs.
(self, doc, results)
| 92 | raise NotImplementedError("Evaluation not implemented") |
| 93 | |
| 94 | def process_results(self, doc, results): |
| 95 | """Take a single document and the LM results and evaluates, returning a |
| 96 | dict where keys are the names of submetrics and values are the values of |
| 97 | the metric for that one document |
| 98 | |
| 99 | :param doc: |
| 100 | The document as returned from training_docs, validation_docs, or test_docs. |
| 101 | :param results: |
| 102 | The results of the requests created in construct_requests. |
| 103 | """ |
| 104 | # TODO: implement evaluation. |
| 105 | raise NotImplementedError("Evaluation not implemented") |
| 106 | |
| 107 | def aggregation(self): |
| 108 | """ |
nothing calls this directly
no outgoing calls
no test coverage detected