{ "_name_or_path": "microsoft/layoutlmv2-base-uncased", "architectures": [ "LayoutLMv2ForTokenClassification" ], "attention_probs_dropout_prob": 0.1, "convert_sync_batchnorm": true, "coordinate_size": 128, "detectron2_config_args": { "MODEL.ANCHOR_GENERATOR.SIZES": [ [ 32 ], [ 64 ], [ 128 ], [ 256 ], [ 512 ] ], "MODEL.BACKBONE.NAME": "build_resnet_fpn_backbone", "MODEL.FPN.IN_FEATURES": [ "res2", "res3", "res4", "res5" ], "MODEL.MASK_ON": true, "MODEL.PIXEL_STD": [ 57.375, 57.12, 58.395 ], "MODEL.POST_NMS_TOPK_TEST": 1000, "MODEL.RESNETS.ASPECT_RATIOS": [ [ 0.5, 1.0, 2.0 ] ], "MODEL.RESNETS.DEPTH": 101, "MODEL.RESNETS.NUM_GROUPS": 32, "MODEL.RESNETS.OUT_FEATURES": [ "res2", "res3", "res4", "res5" ], "MODEL.RESNETS.SIZES": [ [ 32 ], [ 64 ], [ 128 ], [ 256 ], [ 512 ] ], "MODEL.RESNETS.STRIDE_IN_1X1": false, "MODEL.RESNETS.WIDTH_PER_GROUP": 8, "MODEL.ROI_BOX_HEAD.NAME": "FastRCNNConvFCHead", "MODEL.ROI_BOX_HEAD.NUM_FC": 2, "MODEL.ROI_BOX_HEAD.POOLER_RESOLUTION": 14, "MODEL.ROI_HEADS.IN_FEATURES": [ "p2", "p3", "p4", "p5" ], "MODEL.ROI_HEADS.NAME": "StandardROIHeads", "MODEL.ROI_HEADS.NUM_CLASSES": 5, "MODEL.ROI_MASK_HEAD.NAME": "MaskRCNNConvUpsampleHead", "MODEL.ROI_MASK_HEAD.NUM_CONV": 4, "MODEL.ROI_MASK_HEAD.POOLER_RESOLUTION": 7, "MODEL.RPN.IN_FEATURES": [ "p2", "p3", "p4", "p5", "p6" ], "MODEL.RPN.POST_NMS_TOPK_TRAIN": 1000, "MODEL.RPN.PRE_NMS_TOPK_TEST": 1000, "MODEL.RPN.PRE_NMS_TOPK_TRAIN": 2000 }, "fast_qkv": true, "gradient_checkpointing": false, "has_relative_attention_bias": true, "has_spatial_attention_bias": true, "has_visual_segment_embedding": false, "hidden_act": "gelu", "hidden_dropout_prob": 0.1, "hidden_size": 768, "id2label": { "0": "B-DEFINED TERM", "1": "B-DISCLAIMER", "2": "B-EXHIBIT TAG", "3": "B-FOOTNOTE", "4": "B-LIST NUMBERING", "5": "B-PAGE NUMBER", "6": "B-PREAMBLE", "7": "B-SECTION HEADER", "8": "B-SECTION TEXT", "9": "B-SIGNATURE - DATE", "10": "B-SIGNATURE - ENTITY", "11": "B-SIGNATURE - LEAD-IN", "12": "B-SIGNATURE - SIGNER", "13": "B-SIGNATURE - TITLE", "14": "B-TABLE", "15": "B-THEREFORE", "16": "B-TITLE", "17": "B-WHEREAS", "18": "E-DEFINED TERM", "19": "E-DISCLAIMER", "20": "E-EXHIBIT TAG", "21": "E-FOOTNOTE", "22": "E-LIST NUMBERING", "23": "E-PAGE NUMBER", "24": "E-PREAMBLE", "25": "E-SECTION HEADER", "26": "E-SECTION TEXT", "27": "E-SIGNATURE - DATE", "28": "E-SIGNATURE - ENTITY", "29": "E-SIGNATURE - LEAD-IN", "30": "E-SIGNATURE - SIGNER", "31": "E-SIGNATURE - TITLE", "32": "E-TABLE", "33": "E-THEREFORE", "34": "E-TITLE", "35": "E-WHEREAS", "36": "I-DEFINED TERM", "37": "I-DISCLAIMER", "38": "I-FOOTNOTE", "39": "I-PREAMBLE", "40": "I-SECTION HEADER", "41": "I-SECTION TEXT", "42": "I-SIGNATURE - DATE", "43": "I-SIGNATURE - ENTITY", "44": "I-SIGNATURE - LEAD-IN", "45": "I-SIGNATURE - SIGNER", "46": "I-SIGNATURE - TITLE", "47": "I-TABLE", "48": "I-THEREFORE", "49": "I-TITLE", "50": "I-WHEREAS", "51": "O", "52": "S-DEFINED TERM", "53": "S-LIST NUMBERING", "54": "S-PAGE NUMBER", "55": "S-SECTION HEADER", "56": "S-SECTION TEXT", "57": "S-SIGNATURE - DATE", "58": "S-SIGNATURE - ENTITY", "59": "S-SIGNATURE - TITLE", "60": "S-TITLE" }, "image_feature_pool_shape": [ 7, 7, 256 ], "initializer_range": 0.02, "intermediate_size": 3072, "label2id": { "B-DEFINED TERM": 0, "B-DISCLAIMER": 1, "B-EXHIBIT TAG": 2, "B-FOOTNOTE": 3, "B-LIST NUMBERING": 4, "B-PAGE NUMBER": 5, "B-PREAMBLE": 6, "B-SECTION HEADER": 7, "B-SECTION TEXT": 8, "B-SIGNATURE - DATE": 9, "B-SIGNATURE - ENTITY": 10, "B-SIGNATURE - LEAD-IN": 11, "B-SIGNATURE - SIGNER": 12, "B-SIGNATURE - TITLE": 13, "B-TABLE": 14, "B-THEREFORE": 15, "B-TITLE": 16, "B-WHEREAS": 17, "E-DEFINED TERM": 18, "E-DISCLAIMER": 19, "E-EXHIBIT TAG": 20, "E-FOOTNOTE": 21, "E-LIST NUMBERING": 22, "E-PAGE NUMBER": 23, "E-PREAMBLE": 24, "E-SECTION HEADER": 25, "E-SECTION TEXT": 26, "E-SIGNATURE - DATE": 27, "E-SIGNATURE - ENTITY": 28, "E-SIGNATURE - LEAD-IN": 29, "E-SIGNATURE - SIGNER": 30, "E-SIGNATURE - TITLE": 31, "E-TABLE": 32, "E-THEREFORE": 33, "E-TITLE": 34, "E-WHEREAS": 35, "I-DEFINED TERM": 36, "I-DISCLAIMER": 37, "I-FOOTNOTE": 38, "I-PREAMBLE": 39, "I-SECTION HEADER": 40, "I-SECTION TEXT": 41, "I-SIGNATURE - DATE": 42, "I-SIGNATURE - ENTITY": 43, "I-SIGNATURE - LEAD-IN": 44, "I-SIGNATURE - SIGNER": 45, "I-SIGNATURE - TITLE": 46, "I-TABLE": 47, "I-THEREFORE": 48, "I-TITLE": 49, "I-WHEREAS": 50, "O": 51, "S-DEFINED TERM": 52, "S-LIST NUMBERING": 53, "S-PAGE NUMBER": 54, "S-SECTION HEADER": 55, "S-SECTION TEXT": 56, "S-SIGNATURE - DATE": 57, "S-SIGNATURE - ENTITY": 58, "S-SIGNATURE - TITLE": 59, "S-TITLE": 60 }, "layer_norm_eps": 1e-12, "max_2d_position_embeddings": 1024, "max_position_embeddings": 512, "max_rel_2d_pos": 256, "max_rel_pos": 128, "model_type": "layoutlmv2", "num_attention_heads": 12, "num_hidden_layers": 12, "output_past": true, "pad_token_id": 0, "rel_2d_pos_bins": 64, "rel_pos_bins": 32, "shape_size": 128, "torch_dtype": "float32", "transformers_version": "4.13.0.dev0", "type_vocab_size": 2, "vocab_size": 30522 }