Coder Social home page Coder Social logo

Comments (6)

cliang1453 avatar cliang1453 commented on June 15, 2024

Hi,

I think you mainly need to edit convert_examples_to_features in data_utils.py to fit the Electra input pattern, and edit modeling_roberta.py.

from bond.

marcusau avatar marcusau commented on June 15, 2024

Sure, Thanks a lot.

Also , my understanding is . first run the stage 1 by run_ner.py , and then on the top of the stage 1 output to run self-learning.py.

Please correct me if i am wrong.

Thanks a lot.

Marcus

from bond.

cliang1453 avatar cliang1453 commented on June 15, 2024

Hi Marcus, sorry for the confusion. Running run_self_training_ner.py will directly produce the two-stage results. You don't need to run it on top of the stage 1 output.

from bond.

marcusau avatar marcusau commented on June 15, 2024

got it .

Thanks a lot.

What i just wanna know is ...... If i dont have the hp label in my dataset. how to produce it ??

Thanks a lot :)

from bond.

cliang1453 avatar cliang1453 commented on June 15, 2024

Hi Marcus, we produced hp labels for CoNLL03 using pos tagging and rule-based method, and see little improvement unfortunately. Hence, we decided not to use hp labels for training, by not setting args.self_training_hp_label to be 2 or 3 (

elif args.self_training_hp_label == 2:
). We plan to remove these redundant codes that cause confusion.

from bond.

marcusau avatar marcusau commented on June 15, 2024

thanks..

If hp label is not so useful in BOND, I can run the Bond training by run_self_training_ner.py and set args.self_training_hp_label not to be 2 or 3 in the line 570 of run_self_training_ner.py.
parser.add_argument('--self_training_hp_label', type = float, default = 0, help = 'use high precision label.')

Thanks for that 👍

Marcus

from bond.

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.