From 591eb7651112a618eaee5625ebec1570f98f0c2f Mon Sep 17 00:00:00 2001 From: Tim Gates Date: Thu, 31 Dec 2020 07:42:49 +1100 Subject: [PATCH] docs: fix simple typo, sentencs -> sentences There is a small typo in Part2_Text_Classify/cnn-text-classification-tf-chinese/data_helpers.py. Should read `sentences` rather than `sentencs`. --- .../cnn-text-classification-tf-chinese/data_helpers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Part2_Text_Classify/cnn-text-classification-tf-chinese/data_helpers.py b/Part2_Text_Classify/cnn-text-classification-tf-chinese/data_helpers.py index f5607f9..0f493b7 100644 --- a/Part2_Text_Classify/cnn-text-classification-tf-chinese/data_helpers.py +++ b/Part2_Text_Classify/cnn-text-classification-tf-chinese/data_helpers.py @@ -79,7 +79,7 @@ def build_vocab(sentences): def build_input_data(sentences, labels, vocabulary): """ - Maps sentencs and labels to vectors based on a vocabulary. + Maps sentences and labels to vectors based on a vocabulary. """ x = np.array([[vocabulary[word] for word in sentence] for sentence in sentences]) y = np.array(labels)