Comments (2)
谢谢你的问题。
这个模型的基础是谷歌的Roberta_ZH
, 它虽然叫做Roberta
,但是实际上那个作者是用BertModel
结构,但是换成Roberta
的训练方法进行训练的。
而本模型,是从Roberta_ZH
的基础上再进行修改和训练的。
因此使用BertTokenizer
进行加载是没错的。
而AutoTokenizer
的问题比较奇怪,我推测原因是,Transformers
默认LongformerModel
是基于RobertaModel
类。因此LongformerTokenizer
本质上调用的是RobertaTokenizer
,而不是本模型基础的BertTokenizer
。 因此出现这个bug。
希望能解决你的问题。
from longformer_zh.
好的,非常感谢!那我就照着BertTokenizer的写法来写了!
from longformer_zh.
Related Issues (6)
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 longformer_zh.