XMUNLP / Tagger

Deep Semantic Role Labeling with Self-Attention
BSD 3-Clause "New" or "Revised" License
305 stars 86 forks source link

一个bug问题 #7

Closed hrdxwandg closed 6 years ago

hrdxwandg commented 6 years ago

首先感谢作者分享的代码。

在测试时发现一个问题: 1 Wait ! ! Wait '' ! ! Cried the guard who ran from the hut to shout to other men standing about outside . ||| O B-V O O O O O O O O O O O O O O O O O O O O O O O 4 Wait ! ! Wait '' ! ! Cried the guard who ran from the hut to shout to other men standing about outside . ||| O O O O B-V O O O O O O O O O O O O O O O O O O O O

比如在对这两个case做预测时,发现遇到“!”后,预测就停止了。导致长度被截断。用perl脚本做验证时报错。把"!"换成"."就没问题了。

Playinf commented 6 years ago

我单独测试没有问题,不知道你是不是没有换行。