Code Monkey home page Code Monkey logo

Couldn't instantiate the backend tokenizer from one of: (1) a `tokenizers` library serialization file, (2) a slow tokenizer instance to convert or (3) an equivalent slow tokenizer class to instantiate and convert. You need to have sentencepiece installed to convert a slow tokenizer to a fast one. about question_generation HOT 4 CLOSED

patil-suraj avatar patil-suraj commented on May 30, 2024
Couldn't instantiate the backend tokenizer from one of: (1) a `tokenizers` library serialization file, (2) a slow tokenizer instance to convert or (3) an equivalent slow tokenizer class to instantiate and convert. You need to have sentencepiece installed to convert a slow tokenizer to a fast one.

from question_generation.

Comments (4)

nicken avatar nicken commented on May 30, 2024 1

@Xyde
Can you tall me what happen and how to solve it? I get same probelm now

I slove it to pip install transformers==3.0.0

from question_generation.

nicken avatar nicken commented on May 30, 2024

@Xyde
Can you tall me what happen and how to solve it? I get same probelm now

from question_generation.

daisylab avatar daisylab commented on May 30, 2024

Yes. I had same problem and I found that I used transformers 4.2. The solution was just same as @nicken described.

It will be helpful if we get an update code for transformers 4.2. Is there a plan for this?

from question_generation.

HenryJunW avatar HenryJunW commented on May 30, 2024

I got a error while evaluate valhalla/t5-base-qg-hl model using 'nlp = pipeline("question-generation", model="valhalla/t5-base-qg-hl", ans_model='valhalla/t5-base-qa-qg-hl', qg_format="highlight")'.
'AssertionError: You should supply an encoding or a list of encodings to this method. An encoding is the output of one the encoding methods of the tokenizer, i.e. call/encode_plus/batch_encode_plus.'

Any help would be appreciated.

from question_generation.

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.