GithubHelp home page GithubHelp logo

Can't reproduce F1 scores about bert-ner HOT 3 CLOSED

kamalkraj avatar kamalkraj commented on May 18, 2024
Can't reproduce F1 scores

from bert-ner.

Comments (3)

kamalkraj avatar kamalkraj commented on May 18, 2024

default parameters ?
Can you share your cmd you used for training ?

from bert-ner.

lxy444 avatar lxy444 commented on May 18, 2024

default parameters ?
Can you share your cmd you used for training ?

Yes, I used the default parameters.
python run_ner.py --data_dir=data/ --bert_model=bert-base-cased --task_name=ner --output_dir=out --max_seq_length=128 --do_train --num_train_epochs 5 --do_eval --warmup_proportion=0.4

Also, theres is a file named model_config.json in the out folder, which contains
{"bert_model": "/mnt/data/share_data/nlp/bert/model/cased_L-12_H-768_A-12", "do_lower": false, "max_seq_length": 128, "num_labels": 13, "label_map": {"1": "O", "2": "B-MISC", "3": "I-MISC", "4": "B-PER", "5": "I-PER", "6": "B-ORG", "7": "I-ORG", "8": "B-LOC", "9": "I-LOC", "10": "X", "11": "[CLS]", "12": "[SEP]"}}

from bert-ner.

kamalkraj avatar kamalkraj commented on May 18, 2024

I trained on different machines results are only varying by ~0.3
For now you can use pretrained model , Link in Readme

from bert-ner.

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.