Comments (4)
你好,由于所有操作都是基于矩阵的操作,所以所有的句子必须是定长的(例如长度为200),对不够长的句子要进行padding,用""表示,也就是val=0。val=5代表一个句子的开始部分START,是一个额外的辅助标识。label2id文件中给出了相关的映射(除了val=5)。
from sequence-labeling.
你好,不知道你与陈老师是否都是用的2014年人民日报的语料,不同语料会有些差异。我之前基于1998年的人民日报语料做过测试,针对组织机构识别这个任务,bilstm_crf会比bilstm提升4%个点左右,bilstm_crf效果低于crf大概3%,我猜可能的原因是数据量偏小和需要大量的调参工作
from sequence-labeling.
您好,请教一个code细节问题,bilstm_crf.py中predictBatch()函数,278行y_pred = ''.join([id2label[val] for val in predicts[i] if val != 5 and val != 0])。
id2label[0]代表"",那id2label[5]是什么含义呢?或者说‘if val != 5 ’这个条件是为了达到什么效果呢?
from sequence-labeling.
@letiantony ,你好,请问你用的是什么数据集。
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.