Giter VIP home page Giter VIP logo

menuner's Introduction

MenuNER

Implementation for the paper "MenuNER: Domain-Adapted BERT Based NER Approach for a Domain with Limited Dataset and Its Application to Food Menu Domain"

The best results achieved by the model:

                precision    recall    f1-score    support

        MENU     0.9386      0.9301    0.9344      1431

   micro avg     0.9386      0.9301    0.9344      1431
   macro avg     0.9386      0.9301    0.9344      1431
Fine-tuning NER task
ner/preprocess.py 
--data_dir=../data/menu 
--bert_model_name_or_path=../model/FoodieBERT/cased_L-12_H-768_A-12 
--bert_use_sub_label

ner/train.py 
--data_dir=../data/menu 
--bert_model_name_or_path=../model/FoodieBERT/cased_L-12_H-768_A-12
--batch_size=32 
--eval_batch_size=64 
--save_path=pytorch-domain-model-bert-en.pt
--bert_output_dir=bert-domain-checkpoint-en
--epoch=30
--bert_use_pos
--use_char_cnn
--use_mha
--bert_use_feature_based
--use_crf

ner/evaluation.py 
--config=../configs/config-bert.json
--data_dir=../data/menu
--model_path=pytorch-domain-model-bert-en.pt
--bert_output_dir=bert-domain-checkpoint-en
--bert_use_pos
--use_char_cnn
--use_mha
--bert_use_feature_based
--use_crf

Citation

@Article{app11136007,
  AUTHOR = {Syed, Muzamil Hussain and Chung, Sun-Tae},
  TITLE = {MenuNER: Domain-Adapted BERT Based NER Approach for a Domain with Limited Dataset and Its Application to Food Menu Domain},
  JOURNAL = {Applied Sciences},
  VOLUME = {11},
  YEAR = {2021},
  NUMBER = {13},
  ARTICLE-NUMBER = {6007},
  URL = {https://www.mdpi.com/2076-3417/11/13/6007},
  ISSN = {2076-3417},
  DOI = {10.3390/app11136007}
}

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.