From ca6c9dd80e0d449639c7fb21cb91eee7d38170c2 Mon Sep 17 00:00:00 2001 From: WillQvQ Date: Mon, 6 Dec 2021 17:39:44 +0800 Subject: [PATCH] fix a typo --- fastNLP/core/dataset.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fastNLP/core/dataset.py b/fastNLP/core/dataset.py index 9c9e505b..45a488d9 100644 --- a/fastNLP/core/dataset.py +++ b/fastNLP/core/dataset.py @@ -53,7 +53,7 @@ r""" from fastNLP import DataSet from fastNLP import Instance instances = [] - winstances.append(Instance(sentence="This is the first instance", + instances.append(Instance(sentence="This is the first instance", ords=['this', 'is', 'the', 'first', 'instance', '.'], seq_len=6)) instances.append(Instance(sentence="Second instance .",