Giter VIP home page Giter VIP logo

Comments (4)

mandarjoshi90 avatar mandarjoshi90 commented on August 20, 2024

Could you please include the command you used and the error messages?

from spanbert.

saravananpsg avatar saravananpsg commented on August 20, 2024

Hi @mandarjoshi90,
I used the following command to run the script and initially I got an TypeError as the format of the paragragh text [list of list] is different from other datasets.

python code/run_mrqa.py
--do_train
--do_eval
--model spanbert-base-cased
--train_file hotpot_train_v1.json
--dev_file hotpot_dev_distractor_v1.json
--train_batch_size 32
--eval_batch_size 32
--learning_rate 2e-5
--num_train_epochs 4
--max_seq_length 512
--doc_stride 128
--eval_per_epoch 5
--output_dir out_qa_dir
--fp16

Error Log

File "code/run_mrqa.py", line 112, in is_whitespace
if c == " " or c == "\t" or c == "\r" or c == "\n" or ord(c) == 0x202F:
TypeError: ord() expected string of length 1, but list found

from spanbert.

mandarjoshi90 avatar mandarjoshi90 commented on August 20, 2024

Is this file actually in the same format as the MRQA datasets?

from spanbert.

saravananpsg avatar saravananpsg commented on August 20, 2024

@mandarjoshi90 No. I understand now!

from spanbert.

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.