Torch text custom splits

Can someone share there code for spliting custom dataset using torchtext. I am not able to understand how torch text works.