Huggingface.js documentation

Interface: QuestionAnsweringOutput

Hugging Face's logo
Join the Hugging Face community

and get access to the augmented documentation experience

to get started

Interface: QuestionAnsweringOutput

Properties

answer

answer: string

A string that’s the answer within the text.

Defined in

inference/src/tasks/nlp/questionAnswering.ts:16


end

end: number

The index (string wise) of the stop of the answer within context.

Defined in

inference/src/tasks/nlp/questionAnswering.ts:20


score

score: number

A float that represents how likely that the answer is correct

Defined in

inference/src/tasks/nlp/questionAnswering.ts:24


start

start: number

The index (string wise) of the start of the answer within context.

Defined in

inference/src/tasks/nlp/questionAnswering.ts:28

< > Update on GitHub