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)
| 531 | raise NotImplementedError("Evaluation not implemented") |
| 532 | |
| 533 | def process_results(self, doc, results): |
| 534 | """Take a single document and the LM results and evaluates, returning a |
| 535 | dict where keys are the names of submetrics and values are the values of |
| 536 | the metric for that one document |
| 537 | |
| 538 | :param doc: |
| 539 | The document as returned from training_docs, validation_docs, or test_docs. |
| 540 | :param results: |
| 541 | The results of the requests created in construct_requests. |
| 542 | """ |
| 543 | # TODO: implement evaluation. |
| 544 | raise NotImplementedError("Evaluation not implemented") |
| 545 | |
| 546 | def aggregation(self): |
| 547 | """ |
nothing calls this directly
no outgoing calls
no test coverage detected