@huggingface/tasks
Version:
List of ML tasks for huggingface.co/tasks
30 lines (29 loc) • 797 B
JSON
{
"$id": "/inference/schemas/question-answering/output.json",
"$schema": "http://json-schema.org/draft-06/schema#",
"title": "QuestionAnsweringOutput",
"description": "Outputs of inference for the Question Answering task",
"type": "array",
"items": {
"type": "object",
"properties": {
"answer": {
"type": "string",
"description": "The answer to the question."
},
"score": {
"type": "number",
"description": "The probability associated to the answer."
},
"start": {
"type": "integer",
"description": "The character position in the input where the answer begins."
},
"end": {
"type": "integer",
"description": "The character position in the input where the answer ends."
}
},
"required": ["answer", "score", "start", "end"]
}
}