{
    "dataset_reader": {
        "type": "adposition_supersense_tagging",
        "mode": "function",
        "include_raw_tokens": true
    },
    "train_data_path": "data/adposition_supersenses/streusle.ud_train.json",
    "validation_data_path": "data/adposition_supersenses/streusle.ud_dev.json",
    "test_data_path": "data/adposition_supersenses/streusle.ud_test.json",
    "evaluate_on_test" : true,
    "model": {
        "type": "selective_tagger",
        "contextualizer": {
            "type": "elmo_contextualizer",
            "batch_size": 80,
            "layer_num": 2,
            "elmo": {
                "weight_file": "contextualizers/elmo_small/elmo_small_weights.hdf5",
                "options_file": "contextualizers/elmo_small/elmo_small_options.json",
                "requires_grad": false,
                "num_output_representations": 1,
                "dropout": 0.0
            }
        },
        "pretrained_file": std.extVar('pretrained_file'),
        "transfer_contextualizer_from_pretrained_file": true,
        "transfer_encoder_from_pretrained_file": false,
        "token_representation_dim": 256
    },
    "iterator": {
        "type": "basic",
        "batch_size" : 80
    },
    "trainer": {
        "num_epochs": 50,
        "patience": 3,
        "cuda_device": 0,
        "validation_metric": "+accuracy",
        "optimizer": {
            "type": "adam",
            "lr": 0.001
        }
    }
}
