Coder Social home page Coder Social logo

Comments (4)

chilynn avatar chilynn commented on September 13, 2024 3

你好,由于所有操作都是基于矩阵的操作,所以所有的句子必须是定长的(例如长度为200),对不够长的句子要进行padding,用""表示,也就是val=0。val=5代表一个句子的开始部分START,是一个额外的辅助标识。label2id文件中给出了相关的映射(除了val=5)。

from sequence-labeling.

chilynn avatar chilynn commented on September 13, 2024 1

你好,不知道你与陈老师是否都是用的2014年人民日报的语料,不同语料会有些差异。我之前基于1998年的人民日报语料做过测试,针对组织机构识别这个任务,bilstm_crf会比bilstm提升4%个点左右,bilstm_crf效果低于crf大概3%,我猜可能的原因是数据量偏小和需要大量的调参工作

from sequence-labeling.

letiantony avatar letiantony commented on September 13, 2024

您好,请教一个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.

honghuge avatar honghuge commented on September 13, 2024

@letiantony ,你好,请问你用的是什么数据集。

from sequence-labeling.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.