Giter Club home page Giter Club logo

events's Introduction

events

Data processing

python data_processing/xml_to_conll.py ../data/red/ ../proc_data/red/independent/ 

To add the duplicate tokens to the doc, add the -add_duplicate_tag flag as:

python data_processing/xml_to_conll.py ../data/red/ ../proc_data/red/independent_duplicate/ -add_duplicate_tag 

Training/Testing the model:

python auto_memory_model/main.py  -doc_enc independent -model_size base  -pretrained_bert_dir /share/data/speech/shtoshni/resources -seed 25 -finetune  -mlp_size 1024 -sample_singletons 0.2  -proc_strategy default   -ft_lr 3e-05  -focus_group entity  -no_singleton

Flag info:

  • -finetune: Finetunes the document encoder i.e. BERT in this case. Otherwise no finetuning.
  • -sample_singletons 0.2: Determines the fraction of singletons to be sampled during training.
  • -ft_lr 3e-5: Fine-tuning learning rate
  • -proc_strategy {default/duplicate}: Whether duplicate tags are added or not to the text.
  • -focus_group {entity/event/joint}: If entity or event, just train and eval on the specified focus group. Otherwise do joint training and evaluation.
  • -no_singleton: Ensures that during evaluation we don't consider singleton clusters during metric evaluation.

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.