(self, doc)
| 63 | return doc["question"] |
| 64 | |
| 65 | def doc_to_target(self, doc): |
| 66 | # this picks one answer to be the "correct" one, despite sometimes |
| 67 | # multiple correct answers being possible. |
| 68 | # TODO: make sure we're actually handling multi-answer correctly |
| 69 | return " " + doc["answers"][0] |
| 70 | |
| 71 | def _remove_prefixes(self, aliases): |
| 72 | # Optimization: Remove any alias that has a strict prefix elsewhere in the list |
nothing calls this directly
no outgoing calls
no test coverage detected