def extract_model_configs(full_entry):
    """ Given a full entry, extract model configurations and put into a dict. """
    model = ["ico_encoder", "article_encoder", "attn", "cond_attn", 
             "tokenwise_attention", "pretrain_attention", 
             "tune_embeddings", "no_pretrained_word_embeddings"]
    problem = ["article_sections", "data_config"]
    d = {}
    for m in model:
        d[m] = full_entry[m]
        
    for p in problem:
        d[p] = full_entry[p]
        
    return d