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

Commit 582da0f

Browse files
authored
fix typo in torchtext/vocab/vocab_factory.py (#1565)
1 parent 69825a1 commit 582da0f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

torchtext/vocab/vocab_factory.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ def build_vocab_from_iterator(iterator: Iterable, min_freq: int = 1, specials: O
8585
>>> with io.open(file_path, encoding = 'utf-8') as f:
8686
>>> for line in f:
8787
>>> yield line.strip().split()
88-
>>> vocab = build_vocab_from_iterator(yield_tokens_batch(file_path), specials=["<unk>"])
88+
>>> vocab = build_vocab_from_iterator(yield_tokens(file_path), specials=["<unk>"])
8989
"""
9090

9191
counter = Counter()

0 commit comments

Comments
 (0)