You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: intermediate_source/char_rnn_classification_tutorial.py
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -66,8 +66,8 @@
66
66
There are two key pieces of this that we will flesh out over the course of this tutorial. First is the basic data
67
67
object which a label and some text. In this instance, label = the country of origin and text = the name.
68
68
69
-
However, our data has some issues that we will need to clean up. First off, we need to convert unicode to plain ASCII to
70
-
limit the RNN input layers. This is accomplished by converting unicode strings to ASCII and allowing a samll set of allowed characters (allowed_characters)
69
+
However, our data has some issues that we will need to clean up. First off, we need to convert Unicode to plain ASCII to
70
+
limit the RNN input layers. This is accomplished by converting Unicode strings to ASCII and allowing a small set of allowed characters (allowed_characters)
71
71
"""
72
72
73
73
importtorch
@@ -218,7 +218,7 @@ def __getitem__(self, idx):
218
218
print(f"example = {alldata[0]}")
219
219
220
220
#########################
221
-
#Using the dataset object allows us to easily split the data into train and test sets. Here we create na 80/20
221
+
#Using the dataset object allows us to easily split the data into train and test sets. Here we create a 80/20
222
222
#split but the torch.utils.data has more useful utilities.
0 commit comments