Comments (3)
句子长度最大是多少?
from flat-lattice-transformer.
Traceback (most recent call last): File "flat_main.py", line 787, in trainer.train() File "/raid/ztt/anaconda2/envs/p3/lib/python3.6/site-packages/fastNLP/core/trainer.py", line 613, in train self.callback_manager.on_exception(e) File "/raid/ztt/anaconda2/envs/p3/lib/python3.6/site-packages/fastNLP/core/callback.py", line 309, in wrapper returns.append(getattr(callback, func.name)(*arg)) File "/raid/ztt/anaconda2/envs/p3/lib/python3.6/site-packages/fastNLP/core/callback.py", line 505, in on_exception raise exception # 抛出陌生Error File "/raid/ztt/anaconda2/envs/p3/lib/python3.6/site-packages/fastNLP/core/trainer.py", line 609, in train self._train() File "/raid/ztt/anaconda2/envs/p3/lib/python3.6/site-packages/fastNLP/core/trainer.py", line 664, in _train prediction = self._data_forward(self.model, batch_x) File "/raid/ztt/anaconda2/envs/p3/lib/python3.6/site-packages/fastNLP/core/trainer.py", line 752, in _data_forward y = network(**x) File "/raid/ztt/anaconda2/envs/p3/lib/python3.6/site-packages/torch/nn/modules/module.py", line 541, in call result = self.forward(*input, **kwargs) File "../V1/models.py", line 440, in forward bert_embed = self.bert_embedding(char_for_bert) File "/raid/ztt/anaconda2/envs/p3/lib/python3.6/site-packages/torch/nn/modules/module.py", line 541, in call result = self.forward(*input, **kwargs) File "../fastNLP_module.py", line 389, in forward outputs = self.model(words) File "/raid/ztt/anaconda2/envs/p3/lib/python3.6/site-packages/torch/nn/modules/module.py", line 541, in call result = self.forward(*input, **kwargs) File "/raid/ztt/anaconda2/envs/p3/lib/python3.6/site-packages/fastNLP/embeddings/bert_embedding.py", line 339, in forward "After split words into word pieces, the lengths of word pieces are longer than the " RuntimeError: After split words into word pieces, the lengths of word pieces are longer than the maximum allowed sequence length:512 of bert. You can set
auto_truncate=True
for BertEmbedding to automatically truncate overlong input.
我也出现了这样的情况,将auto_truncate = Ture也不太管用,请问您解决了吗
、
from flat-lattice-transformer.
额,你能把具体送到bert embedd里的序列长度输出给我看一下么
from flat-lattice-transformer.
Related Issues (20)
- 使用自定义数据集,训练过程SpanFPreRecMetric各项指标值均为0该如何解决 HOT 2
- report的实验结果是best result还是average? HOT 2
- 读取vocab文件时编码问题
- 载入数据问题:load_msra_ner_without_dev HOT 3
- 官方提供的数据集是不是不全呀? HOT 3
- flat_main.py为什么把测试集直接赋值给了验证集了呢 HOT 1
- 请问该模型能用于生产嘛?感觉模型太大,无法部署
- `LSTM_SeqLabel_True( )`从头到尾没见定义过,咋用?????????????
- 请问参数pos_norm的含义是什么呀?
- 在自己的数据上出现错误
- 吐了
- FileNotFoundError: [Errno 2] No such file or directory: HOT 4
- 数据集提问 HOT 1
- yangjie_word_char_mix.txt 文件 HOT 2
- 你好大佬,跑V1时 NameError: name '_WordBertModel' is not defined这个怎么解决?谢谢 HOT 3
- 大佬你好,请问对应数据集的lexicon是怎么生成的呢
- 复现精度问题 HOT 2
- 代码报错
- key error bigram
- pos_s 和 pos_e 怎么求的
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 flat-lattice-transformer.