Skip to content
Snippets Groups Projects
Select Git revision
  • 5a79601340d546d2e254812e6ca4b8b5be38bf84
  • main default protected
  • ud_training_script
  • fix_seed
  • merged-with-ner
  • multiword_fix_transformer
  • transformer_encoder
  • combo3
  • save_deprel_matrix_to_npz
  • master protected
  • combo-lambo
  • lambo-sent-attributes
  • adding_lambo
  • develop
  • update_allenlp2
  • develop_tmp
  • tokens_truncation
  • LR_test
  • eud_iwpt
  • iob
  • eud_iwpt_shared_task_bert_finetuning
  • 3.3.1
  • list
  • 3.2.1
  • 3.0.3
  • 3.0.1
  • 3.0.0
  • v1.0.6
  • v1.0.5
  • v1.0.4
  • v1.0.3
  • v1.0.2
  • v1.0.1
  • v1.0.0
34 results

training.md

Blame
  • Mateusz Klimaszewski's avatar
    Mateusz Klimaszewski authored and Mateusz Klimaszewski committed
    5a796013
    History
    training.md 1.26 KiB

    Training

    Command:

    combo --mode train \
          --training_data_path your_training_path \
          --validation_data_path your_validation_path

    Options:

    combo --helpfull

    Examples (for clarity without training/validation data paths):

    • train on gpu 0

      combo --mode train --cuda_device 0
    • use pretrained embeddings:

      combo --mode train --pretrained_tokens your_pretrained_embeddings_path --embedding_dim your_embeddings_dim
    • use pretrained transformer embeddings:

      combo --mode train --pretrained_transformer_name your_choosen_pretrained_transformer
    • predict only dependency tree:

      combo --mode train --targets head,deprel
    • use part-of-speech tags for predicting only dependency tree

      combo --mode train --targets head,deprel --features token,char,upostag

    Configuration

    Advanced

    Config template config.template.jsonnet is formed in allennlp format so you can freely modify it. There is configuration for all the training/model parameters (learning rates, epochs number etc.). Some of them use jsonnet syntax to get values from configuration flags, however most of them can be modified directly there.