Skip to content
This repository was archived by the owner on Sep 10, 2025. It is now read-only.

Commit a664981

Browse files
author
Aditya Kurniawan
authored
add missing import in translation dataset (#851)
1 parent 5c522f1 commit a664981

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

torchtext/experimental/datasets/translation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import logging
33

44
from torchtext.experimental.datasets import raw
5-
from torchtext.vocab import build_vocab_from_iterator
5+
from torchtext.vocab import Vocab, build_vocab_from_iterator
66
from torchtext.data.utils import get_tokenizer
77
from ..functional import vocab_func, totensor, sequential_transforms
88

0 commit comments

Comments
 (0)