Code Monkey home page Code Monkey logo

question-answering-tutorial's Issues

Error when try this

Gives an error when running this format with transformers 3.5.1-
as huggingface -transformers update their script i found it in their legacy folder then download in colab & run

!export SQUAD_DIR=/content/dataset \
&& python /content/run_squad.py \
  --model_type bert \
  --model_name_or_path sagorsarker/bangla-bert-base \
  --do_train \
  --do_eval \
  --do_lower_case \
  --train_file $SQUAD_DIR/bengali.json \
  --predict_file $SQUAD_DIR/val_data.json \
  --per_gpu_train_batch_size 6 \
  --learning_rate 3e-5 \
  --num_train_epochs 5.0 \
  --max_seq_length 384 \
  --doc_stride 128 \
  --output_dir /content/model_output \
  --save_steps 5000 \
  --threads 4 \

*error

Evaluating:   0% 0/16 [00:00<?, ?it/s]
Traceback (most recent call last):
  File "/content/run_squad.py", line 830, in <module>
    main()
  File "/content/run_squad.py", line 819, in main
    result = evaluate(args, model, tokenizer, prefix=global_step)
  File "/content/run_squad.py", line 324, in evaluate
    output = [to_list(output[i]) for output in outputs.to_tuple()]
AttributeError: 'tuple' object has no attribute 'to_tuple'

Fine-tune my custom data

Great after all.

I've specific questions. There is a model sagorsarker/bangla-bert-base already available for Bengali language, also a squad like dataset from google tydiqa contains questions of Bengali. So, run_squad.py is just simply work for me ? as simple as that or i Use run_squad_trainer.py ?(updated script) from huggingface repo.

Thank you.

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.