Skip to content

Commit 2d9071c

Browse files
authored
Merge pull request #1029 from d2l-ai/master
[hotfix] Add d2l-zh-2.0.0.zip
2 parents 0e3803d + f61dac3 commit 2d9071c

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

chapter_natural-language-processing-applications/sentiment-analysis-and-dataset.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def read_imdb(data_dir, is_train):
5959
train_data = read_imdb(data_dir, is_train=True)
6060
print('训练集数目:', len(train_data[0]))
6161
for x, y in zip(train_data[0][:3], train_data[1][:3]):
62-
print('label:', y, 'review:', x[0:60])
62+
print('标签:', y, 'review:', x[0:60])
6363
```
6464

6565
## 预处理数据集

chapter_natural-language-processing-applications/sentiment-analysis-rnn.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ class BiRNN(nn.Module):
7070
self.decoder = nn.Linear(4 * num_hiddens, 2)
7171
7272
def forward(self, inputs):
73-
# `inputs`的形状是(批量大小,,时间步数)
73+
# `inputs`的形状是(批量大小,时间步数)
7474
# 因为长短期记忆网络要求其输入的第一个维度是时间维,
7575
# 所以在获得词元表示之前,输入会被转置。
7676
# 输出形状为(时间步数,批量大小,词向量维度)

config.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,7 @@ reverse_alias =
174174

175175
other_file_s3urls = s3://d2l-webdata/releases/d2l-zh/d2l-zh-1.0.zip
176176
s3://d2l-webdata/releases/d2l-zh/d2l-zh-1.1.zip
177+
s3://d2l-webdata/releases/d2l-zh/d2l-zh-2.0.0.zip
177178

178179
google_analytics_tracking_id = UA-96378503-2
179180

0 commit comments

Comments
 (0)