Thanks @awsgcp. Indeed, I think torchtext has some duplicate code, which should be retired. See an issue post here 32 where we discuss a new abstraction, which is more compatible with torch.utils.data. In that case, we don’t need to maintain those duplicate functions anymore.