Giter Club home page Giter Club logo

Comments (10)

yongyehuang avatar yongyehuang commented on August 23, 2024

@parkourcx 你好,感谢提问。你的这个问题应该不是句子长度的问题,而是数据处理中每个字的label标注的不对。我记得标注中只用了 s b m e 四种标注分别表示: s- 单字成词, b- 词首, m-词中,e-词尾;对于 padding 部分统一使用 x 作为标注。从你的报错来看你的 label 有些 -2147483648 应该是不对的,还有我也不太明白(今/B 天/M是/M个/M好/E3天/E2气/E) 为什么这样标注。

from tensorflow-tutorial.

parkourcx avatar parkourcx commented on August 23, 2024

from tensorflow-tutorial.

yongyehuang avatar yongyehuang commented on August 23, 2024

@parkourcx 这样的话应该没有什么问题,你可以比较一下这样的标注和只使用 s b m e 四tag标注的方式看看那个效果好。模型的话这个模型也是比较简单的模型,你也可以尝试一下 lstm+crf 的模型(我自己也没跑过。。。),序列标注中用得还是比较多的。

from tensorflow-tutorial.

parkourcx avatar parkourcx commented on August 23, 2024

from tensorflow-tutorial.

yongyehuang avatar yongyehuang commented on August 23, 2024

@parkourcx padding 是为了把每个样本变成一样的长度,对于长度不足的部分序列要使用一个特殊符号进行补充,这个特殊符号都标注为一个新的label,所以你还是使用 tags=[‘s’,‘b’,‘m’,‘e’,‘x’] 吧。

from tensorflow-tutorial.

parkourcx avatar parkourcx commented on August 23, 2024

from tensorflow-tutorial.

yongyehuang avatar yongyehuang commented on August 23, 2024

@parkourcx 'x' 是在代码处理中加上的tag,不是标注数据中的 tag

from tensorflow-tutorial.

parkourcx avatar parkourcx commented on August 23, 2024

from tensorflow-tutorial.

parkourcx avatar parkourcx commented on August 23, 2024

from tensorflow-tutorial.

parkourcx avatar parkourcx commented on August 23, 2024

from tensorflow-tutorial.

Related Issues (17)

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.