提交 32f7176d 编写于 作者: C caoying03

remove chunk evaluator.

上级 0a21649f
......@@ -6,9 +6,6 @@ import paddle.v2.dataset.conll05 as conll05
import paddle.v2.evaluator as evaluator
import paddle.v2 as paddle
logger = logging.getLogger('paddle')
logger.setLevel(logging.WARN)
word_dict, verb_dict, label_dict = conll05.get_dict()
word_dict_len = len(word_dict)
label_dict_len = len(label_dict)
......@@ -155,11 +152,6 @@ def main(is_predict=False):
label=target,
param_attr=paddle.attr.Param(name='crfw'))
evaluator.sum(input=crf_dec)
evaluator.chunk(
input=crf_dec,
label=target,
chunk_scheme="IOB",
num_chunk_types=label_dict_len / 2)
# create parameters
parameters = paddle.parameters.create(crf_cost)
......@@ -250,4 +242,4 @@ def main(is_predict=False):
if __name__ == '__main__':
main(is_predict=True)
main(is_predict=False)
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册