GithubHelp home page GithubHelp logo

Comments (2)

ValkyriaLenneth avatar ValkyriaLenneth commented on July 20, 2024 1

谢谢你的问题。

这个模型的基础是谷歌的Roberta_ZH, 它虽然叫做Roberta,但是实际上那个作者是用BertModel结构,但是换成Roberta的训练方法进行训练的。

而本模型,是从Roberta_ZH的基础上再进行修改和训练的。

因此使用BertTokenizer进行加载是没错的。

AutoTokenizer的问题比较奇怪,我推测原因是,Transformers 默认LongformerModel是基于RobertaModel类。因此LongformerTokenizer本质上调用的是RobertaTokenizer,而不是本模型基础的BertTokenizer。 因此出现这个bug。

希望能解决你的问题。

from longformer_zh.

PolarisRisingWar avatar PolarisRisingWar commented on July 20, 2024

好的,非常感谢!那我就照着BertTokenizer的写法来写了!

from longformer_zh.

Related Issues (6)

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.