Git Product home page Git Product logo

Comments (5)

yao8839836 avatar yao8839836 commented on August 22, 2024

@By-he

Thanks for your interests.

You may forget to use --task_name kg in the command, because I only found task_name = args.task_name.lower() in run_bert_triple_classifier.py which is not in line 542.

from kg-bert.

By-he avatar By-he commented on August 22, 2024

Thank you very much for your answer and the problem has been resolved. But there is a new problem: TypeError: _isdir: path should be string, bytes or os.PathLike, not NoneType. The problem is in line 555: tokenizer = BertTokenizer.from_pretrained(args.bert_model, do_lower_case=args.do_lower_case). I look forward to your reply, thank you.

from kg-bert.

yao8839836 avatar yao8839836 commented on August 22, 2024

@By-he

Have you used all the args in the following command? it's another NoneType error, which means some requried inputs are None.

python run_bert_triple_classifier.py
--task_name kg
--do_train
--do_eval
--do_predict
--data_dir ./data/WN11
--bert_model bert-base-uncased
--max_seq_length 20
--train_batch_size 32
--learning_rate 5e-5
--num_train_epochs 3.0
--output_dir ./output_WN11/
--gradient_accumulation_steps 1
--eval_batch_size 512

from kg-bert.

By-he avatar By-he commented on August 22, 2024

First of all, I am very sorry, because I am still a beginner, so many details have not been noticed. Now the experiment has been running successfully. Thank you for taking the time to reply. I wish your research all the best.

from kg-bert.

yao8839836 avatar yao8839836 commented on August 22, 2024

@By-he

Thank you.

from kg-bert.

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.