Citations / Quoting or spans ?

#3
by Threeeagle - opened

hi there and great work!

is it possible to have the model output the context sentence / citation or span it has found the requested information by setting a smart template?

Obviously, once verbatim strings are found, spans and context can be computed on text input as a post-step, however i wonder if the model could provide it right away

Hi, great question. While the model doesn't compute precise spans natively, I think it would be possible to do something like this, depending on your exact problem.

For example using a template like {"person_names": [{"name":"verbatim-string","source_sentence":"verbatim-string"}]} to also extract source sentences would probably work quite well. However, if you are looking for exact span indices or something I wouldn’t trust the model to be very reliable there.

Threeeagle changed discussion status to closed

Sign up or log in to comment