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

Model #1

Open
wuxiaohui0 opened this issue Oct 17, 2024 · 2 comments
Open

Model #1

wuxiaohui0 opened this issue Oct 17, 2024 · 2 comments

Comments

@wuxiaohui0
Copy link

您好,想问一下,这个Model.py里面全是一些模型的组件,在main函数中定义model这个类时没有这个模型。咋样解决

@HSXkeeny
Copy link
Owner

非常感谢您对HiNER模型代码的提问,我们在Model.py 中的明确了我们模型组件的功能和定义,但是在main.py中需要把它们实例化一下,这块因为每个数据集设置的不同,我们没有放进去。里面的代码是文章总体思路的呈现,您需要微调一下才能使用,具体您可以参考bert4torchW2NER的代码.

@wuxiaohui0
Copy link
Author

您好,最近两天我看了一下https://github.com/Tongjilibo/bert4torch中实现的W2NER,想学习一下您在数据处理中加入了句法embedding 和词汇embedding是咋样结合到这个框架的。

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

2 participants