How can we customize pipeline?
How pipeline handles custom pre-processing or post-processing.  For example, different doc_stride, max_seq_length in Question Answering?
2021-01-19T06:06:49Z
I dont think that is possible. But lets hear from someone experienced.
2021-01-19T06:15:45Z
Hi@s4sarathit’s possible to pass differentdoc_stride,max_seq_lengthetc directly to the__call__method, i.e when calling the pipeline, have a look at the docstring of__call__of QA pipelinehere
2021-01-19T10:34:15Z
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 .
2021-01-19T11:18:01Z
In that case, you could subclass the pipeline to add the custom behavior.
2021-01-19T12:19:19Z
That’s what I was looking for .