Comments (2)
比如“targets_weight”在模型里是起到什么作用的?
from sequence-labeling.
1、抱歉,当时没有写太多注释,主要参考的https://github.com/glample/tagger ,但是他这个是基于theano实现的,而且是sgd,不是mini-batch,基于它的思路改成tensorflow的mini-batch版本
2、targets_weight主要是考虑到在损失函数中,不同label的权重应该不一样的,错误预测BE的代价应该比M的代价大,M的代价比O的代价要大,使模型更加关注边界的performance。但是在bilstm+crf中,targets_weight这个变量最后没用上,因为加了一层crf,而不是简单的交叉熵,这个targets_weight暂时加不进去,所以这个变量可以暂时忽略
from sequence-labeling.
Related Issues (20)
- 请问下,HMM的predict这块的path和W指的什么? HOT 2
- 您好,请问几个代码调试过程中遇到的问题
- 在初始化的时候选择了is_crf=False,结果结果就是没有初始化loss,出错了 HOT 1
- confused about the task HOT 2
- 能帮忙提供下您实现的crf部分以及viterbi部分的一个理论上的教程吗? HOT 1
- 计算point score问题 HOT 1
- 请教您tf版本更新后的代码的变化 HOT 6
- 关于label数多于四个的问题 HOT 2
- 关于数据预处理的问题 HOT 3
- About datasets HOT 1
- 代码中带的那个NBA例子,训练后没找到存储的模型
- 关于y_train_weight_batch
- ImportError: No module named models.rnn HOT 1
- tf implemented CRF compared with API crf HOT 1
- why my loss decrease under 0 HOT 2
- word-embedding file
- 关于停用词被去掉的问题。
- 关于模型中CRF层的几个小疑问 HOT 7
- transitions reshape的问题 HOT 1
- Why my loss is every small and under 0?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sequence-labeling.