提交 5fb669bd 编写于 作者: Z Zeyu Chen

fix log typo

上级 8dd7e46c
......@@ -68,7 +68,7 @@ if __name__ == '__main__':
num_labels = len(reader.get_labels())
input_dict, output_dict, program = module.context(
sign_name="tokens", trainable=True, max_seq_len=args.max_seq_len)
trainable=True, max_seq_len=args.max_seq_len)
with fluid.program_guard(program):
label = fluid.layers.data(name="label", shape=[1], dtype='int64')
......
......@@ -23,12 +23,12 @@ class BaseProcessor(object):
def preprocess(self, sign_name, data_dict):
raise NotImplementedError(
"BaseProcessor' preprocess should not be call!")
"BaseProcessor' preprocess should not be called!")
def postprocess(self, sign_name, data_out, data_info, **kwargs):
raise NotImplementedError(
"BaseProcessor' postprocess should not be call!")
"BaseProcessor' postprocess should not be called!")
def data_format(self, sign_name):
raise NotImplementedError(
"BaseProcessor' data_format should not be call!")
"BaseProcessor' data_format should not be called!")
......@@ -119,7 +119,7 @@ class Module(object):
if processor:
if not issubclass(processor, BaseProcessor):
raise TypeError(
"processor shoule be an instance of paddlehub.BaseProcessor"
"Processor shoule be an instance of paddlehub.BaseProcessor"
)
if assets:
self.assets = utils.to_list(assets)
......@@ -129,10 +129,10 @@ class Module(object):
self._generate_module_info(module_info)
self._init_with_signature(signatures=signatures)
else:
raise ValueError("Error! Module initialized parameter is empty")
raise ValueError("Module initialized parameter is empty")
def _init_with_name(self, name):
logger.info("Try installing module %s" % name)
logger.info("Installing %s module" % name)
result, tips, module_dir = default_module_manager.install_module(
module_name=name)
if not result:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册