ocr-entities-v3 / config.json
pabloOmega's picture
Upload LayoutLMv3ForTokenClassification
84bd2c8 verified
{
"architectures": [
"LayoutLMv3ForTokenClassification"
],
"attention_probs_dropout_prob": 0.1,
"bos_token_id": 0,
"classifier_dropout": null,
"coordinate_size": 128,
"eos_token_id": 2,
"has_relative_attention_bias": true,
"has_spatial_attention_bias": true,
"hidden_act": "gelu",
"hidden_dropout_prob": 0.1,
"hidden_size": 768,
"id2label": {
"0": "B-PARAGRAPH",
"1": "B-PARAGRAPH-boxed",
"2": "B-PARAGRAPH-highlighted",
"3": "B-PARAGRAPH-strikethrough",
"4": "B-PARAGRAPH-underlined",
"5": "B-SECTION",
"6": "B-SECTION-boxed",
"7": "B-SECTION-highlighted",
"8": "B-SECTION-strikethrough",
"9": "B-SECTION-underlined",
"10": "B-TITLE",
"11": "B-TITLE-boxed",
"12": "B-TITLE-highlighted",
"13": "B-TITLE-strikethrough",
"14": "B-TITLE-underlined",
"15": "I-PARAGRAPH",
"16": "I-PARAGRAPH-boxed",
"17": "I-PARAGRAPH-highlighted",
"18": "I-PARAGRAPH-strikethrough",
"19": "I-PARAGRAPH-underlined",
"20": "I-SECTION",
"21": "I-SECTION-boxed",
"22": "I-SECTION-highlighted",
"23": "I-SECTION-strikethrough",
"24": "I-SECTION-underlined",
"25": "I-TITLE",
"26": "I-TITLE-boxed",
"27": "I-TITLE-highlighted",
"28": "I-TITLE-strikethrough",
"29": "I-TITLE-underlined"
},
"initializer_range": 0.02,
"input_size": 224,
"intermediate_size": 3072,
"label2id": {
"B-PARAGRAPH": 0,
"B-PARAGRAPH-boxed": 1,
"B-PARAGRAPH-highlighted": 2,
"B-PARAGRAPH-strikethrough": 3,
"B-PARAGRAPH-underlined": 4,
"B-SECTION": 5,
"B-SECTION-boxed": 6,
"B-SECTION-highlighted": 7,
"B-SECTION-strikethrough": 8,
"B-SECTION-underlined": 9,
"B-TITLE": 10,
"B-TITLE-boxed": 11,
"B-TITLE-highlighted": 12,
"B-TITLE-strikethrough": 13,
"B-TITLE-underlined": 14,
"I-PARAGRAPH": 15,
"I-PARAGRAPH-boxed": 16,
"I-PARAGRAPH-highlighted": 17,
"I-PARAGRAPH-strikethrough": 18,
"I-PARAGRAPH-underlined": 19,
"I-SECTION": 20,
"I-SECTION-boxed": 21,
"I-SECTION-highlighted": 22,
"I-SECTION-strikethrough": 23,
"I-SECTION-underlined": 24,
"I-TITLE": 25,
"I-TITLE-boxed": 26,
"I-TITLE-highlighted": 27,
"I-TITLE-strikethrough": 28,
"I-TITLE-underlined": 29
},
"layer_norm_eps": 1e-05,
"max_2d_position_embeddings": 1024,
"max_position_embeddings": 514,
"max_rel_2d_pos": 256,
"max_rel_pos": 128,
"model_type": "layoutlmv3",
"num_attention_heads": 12,
"num_channels": 3,
"num_hidden_layers": 12,
"pad_token_id": 1,
"patch_size": 16,
"rel_2d_pos_bins": 64,
"rel_pos_bins": 32,
"second_input_size": 112,
"shape_size": 128,
"text_embed": true,
"torch_dtype": "float32",
"transformers_version": "4.51.1",
"type_vocab_size": 1,
"visual_embed": true,
"vocab_size": 50265
}