Pipeline text classification with two sequences for each example
Hello, I am trying to figure out how to use pipelines for inference when I have two input sequences per example for tasks like entailment.I’m training a binary sequence classifier that takes two input sequences. Example:{
    "sequence_a": "There are no giraffes in Canada.",
    "sequence_b": "Giraffes are only native to a handful of countries in Africa."
}Is this possible?Thanks for your help!
2022-02-23T21:20:24Z
I’ve resolved this by creating my ownPipelineclass. Curious to know if there is another way to do this though.
2022-02-24T10:50:05Z
Hello and welcome to the forumYou can just pass two sentences like this in the input:“There are no giraffes in Canada. There are no giraffes in Canada are only native to a handful of countries in Africa.” like in the inference API widget. I know it’s will not work for when you want to do this beyond the sentences (e.g. two paragraphs) so I raised it.