Skip to content

Commit 00ee006

Browse files
author
Guanheng Zhang
committed
add encoding=utf8
1 parent 5b9adf6 commit 00ee006

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

beginner_source/transformer_tutorial.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ def forward(self, x):
148148
from torchtext.utils import download_from_url, extract_archive
149149
from torchtext.data.utils import get_tokenizer
150150
from torchtext.vocab import build_vocab_from_iterator
151-
151+
# encoding=utf8
152152
url = 'https://s3.amazonaws.com/research.metamind.io/wikitext/wikitext-2-v1.zip'
153153
test_filepath, valid_filepath, train_filepath = extract_archive(download_from_url(url))
154154
tokenizer = get_tokenizer('basic_english')

0 commit comments

Comments
 (0)