From 623f8fa1b248fd9b5f11355ab3c06ed2cf2802e2 Mon Sep 17 00:00:00 2001 From: Coet Date: Tue, 3 Jul 2018 16:42:14 +0800 Subject: [PATCH] Update base_preprocess.py --- fastNLP/loader/base_preprocess.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/fastNLP/loader/base_preprocess.py b/fastNLP/loader/base_preprocess.py index 988c0bba..806fbd18 100644 --- a/fastNLP/loader/base_preprocess.py +++ b/fastNLP/loader/base_preprocess.py @@ -11,25 +11,25 @@ class BasePreprocess(object): self.pickle_path = self.pickle_path + '/' def word2id(self): - pass + raise NotImplementedError def id2word(self): - pass + raise NotImplementedError def class2id(self): - pass + raise NotImplementedError def id2class(self): - pass + raise NotImplementedError def embedding(self): - pass + raise NotImplementedError def data_train(self): - pass + raise NotImplementedError def data_dev(self): - pass + raise NotImplementedError def data_test(self): - pass \ No newline at end of file + raise NotImplementedError