Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ddp.parse的结果可以直接输出CoNLL-X格式吗? #23

Closed
tianfrank opened this issue Oct 11, 2020 · 5 comments
Closed

ddp.parse的结果可以直接输出CoNLL-X格式吗? #23

tianfrank opened this issue Oct 11, 2020 · 5 comments

Comments

@tianfrank
Copy link

No description provided.

@zhangyimi
Copy link
Collaborator

可以直接修改源码,在parse函数return前增加predicts.print(), 会打印CoNLL-X格式的输出。

@tianfrank
Copy link
Author

感觉还是稍微有些麻烦了。能否直接变成parse的一个参数?

@tianfrank
Copy link
Author

tianfrank commented Oct 24, 2020

不好意思,能说得详细一些么?是在run.py这个文件里面def parse函数前的return语句的上一行增加predicts.print()吗?我这么处理了,没有任何变化哈。代码如下:
else:
logging.warning("please check the foramt of your inputs.")
predicts.print()
return

@zhangyimi
Copy link
Collaborator

加在run.py的380行和381行中间

@LiuPeiP-CS
Copy link

是在run.py文件中的def parse()函数的return命令前添加print(predicts)命令。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants