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