Comments (7)
应该是预测文本第一句多了两个空格 words那边做了strip 所以少了一个词
from ner.
config文件里面有个max_sequence
tf.app.flags.DEFINE_integer("max_sequence", 100, "max sequence length.")
如果要标注的文本比这个长就会报这个错误,可以试试把这个改大一点儿
from ner.
我试了一下,这样好像不起作用
from ner.
原因是你预测的句子的长度大于max_sequence
要么增大max_sequence , 要么控制每行的长度不超过max_sequence
from ner.
不可能呀,我设置的max_sequence为1000,但是我实际预测的文本长度不超过100,我跟踪了一下,发现tag的长度总是比预测的文本的长度多1,不知道是哪里不对
from ner.
我仔细看了一下我的预测文本,确实有一个地方有两个空格,去掉一个就没问题了,楼上正解。
from ner.
是不是Python版本的问题,建议用Python2.7测试下
from ner.
Related Issues (20)
- 预测时出现错误 HOT 1
- 怎么老是有人问很萌新的问题,完全可以自己google一下 HOT 1
- OutOfRangeError 训练时报错,完全看不懂,请教大神 HOT 7
- 预测时报错,求解
- 如何添加实现多行文本的预测,在rnn文档123行怎么改 HOT 2
- Glove 128维向量
- TextLineDataset
- 运行rnn.py时,不能加载父模块 HOT 1
- 关于target.txt文件的问题 HOT 3
- 预测时报错,求解
- 预测的时候出现异常: File "rnn.py", line 65, in _build_net self.outputs, self.y, self.seq_length)
- 请问最后训练的loss大概是多少?
- 错误的预测结果:全部为O HOT 4
- IndexError: index 2 is out of bounds for axis 0 with size 2
- assert len(words) == len(tags) AssertionError
- 时间实体也是通过模型出来的么,不能直接通过分词和词性标注看出么
- 训练的时候出现这个错误
- MRelationExtractionData
- 需要wiki.zh.vec留邮箱 HOT 24
- 如何获取F1值、准确率和召回率?
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 ner.