GithubHelp home page GithubHelp logo

Comments (7)

SheepAndWolf avatar SheepAndWolf commented on July 28, 2024 3

应该是预测文本第一句多了两个空格 words那边做了strip 所以少了一个词

from ner.

wanderring avatar wanderring commented on July 28, 2024

config文件里面有个max_sequence
tf.app.flags.DEFINE_integer("max_sequence", 100, "max sequence length.")
如果要标注的文本比这个长就会报这个错误,可以试试把这个改大一点儿

from ner.

juaner09 avatar juaner09 commented on July 28, 2024

我试了一下,这样好像不起作用

from ner.

qq547276542 avatar qq547276542 commented on July 28, 2024

原因是你预测的句子的长度大于max_sequence
要么增大max_sequence , 要么控制每行的长度不超过max_sequence

from ner.

juaner09 avatar juaner09 commented on July 28, 2024

不可能呀,我设置的max_sequence为1000,但是我实际预测的文本长度不超过100,我跟踪了一下,发现tag的长度总是比预测的文本的长度多1,不知道是哪里不对

from ner.

juaner09 avatar juaner09 commented on July 28, 2024

我仔细看了一下我的预测文本,确实有一个地方有两个空格,去掉一个就没问题了,楼上正解。

from ner.

zdx1012 avatar zdx1012 commented on July 28, 2024

是不是Python版本的问题,建议用Python2.7测试下

from ner.

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.