How pipeline handles custom pre-processing or post-processing. For example, different doc_stride, max_seq_length in Question Answering?
I dont think that is possible. But lets hear from someone experienced.
Agree. But I am asking more of like a custom preprocessing. Let’s say I want to add token type I’d 2 to question and 0s to context .
In that case, you could subclass the pipeline to add the custom behavior.
That’s what I was looking for .