It could also be thought of as a text generation (sumarization) task.
Or if you know you want a snippet that exists in the input you could run some sort of attention over the input to choose the start/end tokens.