Skip to content
Snippets Groups Projects
Select Git revision
  • a42a032a79103b3cc16afe76aac328bdc3955e3c
  • 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

Configuration.md

Blame
  • user avatar
    Maja Jablonska authored
    3c47dbf1
    History
    Configuration.md 583 B

    Configuration

    Models can be serialized as a json file with the following structure:

    {
      "model": {
        "type": <model_type>,
        "parameters": {
          <parameter_name>: {
            "type": <class_name>,
            "parameters": {...}
          }
        }
      }
    }

    The "type" field serves as a dependency-injection like mechanism and sets which class and constructor is used. The "parameters" dictionary is passed to the constructor method. Every parameter is attempted to be resolved from the class registry and only if that's not possible they are passed as-is.