{
  "dataset_reader": {
    "type": "sst_tokens",
    "use_subtrees": true,
    "granularity": "5-class",
    "token_indexers": {
      "tokens": {
        "type": "single_id"
      },
      "elmo": {
        "type": "elmo_characters"
      }
    }
  },
  "train_data_path": "allennlp/tests/fixtures/data/sst.txt",
  "validation_data_path": "allennlp/tests/fixtures/data/sst.txt",
  "model": {
    "type": "bcn",
    "text_field_embedder": {
      "token_embedders": {
        "tokens": {
            "type": "embedding",
            "embedding_dim": 10
        }
      }
    },
    "embedding_dropout": 0.0,
    "pre_encode_feedforward": {
      "input_dim": 10,
      "num_layers": 1,
      "hidden_dims": [3],
      "activations": ["relu"],
      "dropout": [0.0]
    },
    "encoder": {
      "type": "lstm",
      "input_size": 3,
      "hidden_size": 2,
      "num_layers": 1
    },
    "integrator": {
      "type": "lstm",
      "input_size": 6,
      "hidden_size": 3,
      "num_layers": 1
    },
    "integrator_dropout": 0.0,
    "elmo": {
      "options_file": "allennlp/tests/fixtures/elmo/options.json",
      "weight_file": "allennlp/tests/fixtures/elmo/lm_weights.hdf5",
      "num_output_representations": 1,
      "do_layer_norm": false
    },
    "use_integrator_output_elmo": true,
    "output_layer": {
      "input_dim": 140,
      "num_layers": 2,
      "output_dims": [6, 5],
      "pool_sizes": [4, 3],
      "dropout": [0.0, 0.0]
    }
  },
  "data_loader": {
    "batch_sampler": {
        "type": "bucket",
        "batch_size": 80,
        "padding_noise": 0.0
    }
},
  "trainer": {
    "num_epochs": 1,
    "grad_norm": 1,
    "patience": 500,
    "cuda_device": -1,
    "optimizer": {
      "type": "adadelta",
      "lr": 0.000001,
      "rho": 0.95
    }
  }
}
