Uses RequestFactory to construct Requests and returns an iterable of Requests which will be sent to the LM. :param doc: The document as returned from training_docs, validation_docs, or test_docs. :param ctx: str The context string, generated by fewsho
(self, doc, ctx)
| 78 | return doc["answer"] |
| 79 | |
| 80 | def construct_requests(self, doc, ctx): |
| 81 | """Uses RequestFactory to construct Requests and returns an iterable of |
| 82 | Requests which will be sent to the LM. |
| 83 | |
| 84 | :param doc: |
| 85 | The document as returned from training_docs, validation_docs, or test_docs. |
| 86 | :param ctx: str |
| 87 | The context string, generated by fewshot_context. This includes the natural |
| 88 | language description, as well as the few shot examples, and the question |
| 89 | part of the document for `doc`. |
| 90 | """ |
| 91 | # TODO: implement evaluation. |
| 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 |
nothing calls this directly
no outgoing calls
no test coverage detected