|
{ |
|
"_name_or_path": "microsoft/layoutlmv3-large", |
|
"architectures": [ |
|
"LayoutLMv3ForTokenClassification" |
|
], |
|
"attention_probs_dropout_prob": 0.1, |
|
"bos_token_id": 0, |
|
"classifier_dropout": null, |
|
"coordinate_size": 171, |
|
"eos_token_id": 2, |
|
"finetuning_task": "ner", |
|
"has_relative_attention_bias": true, |
|
"has_spatial_attention_bias": true, |
|
"hidden_act": "gelu", |
|
"hidden_dropout_prob": 0.1, |
|
"hidden_size": 1024, |
|
"id2label": { |
|
"0": "O", |
|
"1": "B-ENERGY_KJ_100G", |
|
"2": "I-ENERGY_KJ_100G", |
|
"3": "B-VITAMIN_D_SERVING", |
|
"4": "I-VITAMIN_D_SERVING", |
|
"5": "B-SODIUM_SERVING", |
|
"6": "I-SODIUM_SERVING", |
|
"7": "B-PROTEINS_SERVING", |
|
"8": "I-PROTEINS_SERVING", |
|
"9": "B-ADDED_SUGARS_SERVING", |
|
"10": "I-ADDED_SUGARS_SERVING", |
|
"11": "B-CALCIUM_SERVING", |
|
"12": "I-CALCIUM_SERVING", |
|
"13": "B-FAT_SERVING", |
|
"14": "I-FAT_SERVING", |
|
"15": "B-ENERGY_KJ_SERVING", |
|
"16": "I-ENERGY_KJ_SERVING", |
|
"17": "B-SUGARS_100G", |
|
"18": "I-SUGARS_100G", |
|
"19": "B-SATURATED_FAT_SERVING", |
|
"20": "I-SATURATED_FAT_SERVING", |
|
"21": "B-SERVING_SIZE", |
|
"22": "I-SERVING_SIZE", |
|
"23": "B-SALT_SERVING", |
|
"24": "I-SALT_SERVING", |
|
"25": "B-ENERGY_KCAL_SERVING", |
|
"26": "I-ENERGY_KCAL_SERVING", |
|
"27": "B-FAT_100G", |
|
"28": "I-FAT_100G", |
|
"29": "B-SUGARS_SERVING", |
|
"30": "I-SUGARS_SERVING", |
|
"31": "B-FIBER_SERVING", |
|
"32": "I-FIBER_SERVING", |
|
"33": "B-TRANS_FAT_SERVING", |
|
"34": "I-TRANS_FAT_SERVING", |
|
"35": "B-POTASSIUM_SERVING", |
|
"36": "I-POTASSIUM_SERVING", |
|
"37": "B-CARBOHYDRATES_100G", |
|
"38": "I-CARBOHYDRATES_100G", |
|
"39": "B-POTASSIUM_100G", |
|
"40": "I-POTASSIUM_100G", |
|
"41": "B-IRON_SERVING", |
|
"42": "I-IRON_SERVING", |
|
"43": "B-CHOLESTEROL_100G", |
|
"44": "I-CHOLESTEROL_100G", |
|
"45": "B-TRANS_FAT_100G", |
|
"46": "I-TRANS_FAT_100G", |
|
"47": "B-ADDED_SUGARS_100G", |
|
"48": "I-ADDED_SUGARS_100G", |
|
"49": "B-FIBER_100G", |
|
"50": "I-FIBER_100G", |
|
"51": "B-CALCIUM_100G", |
|
"52": "I-CALCIUM_100G", |
|
"53": "B-SODIUM_100G", |
|
"54": "I-SODIUM_100G", |
|
"55": "B-ENERGY_KCAL_100G", |
|
"56": "I-ENERGY_KCAL_100G", |
|
"57": "B-CHOLESTEROL_SERVING", |
|
"58": "I-CHOLESTEROL_SERVING", |
|
"59": "B-CARBOHYDRATES_SERVING", |
|
"60": "I-CARBOHYDRATES_SERVING", |
|
"61": "B-SALT_100G", |
|
"62": "I-SALT_100G", |
|
"63": "B-VITAMIN_D_100G", |
|
"64": "I-VITAMIN_D_100G", |
|
"65": "B-SATURATED_FAT_100G", |
|
"66": "I-SATURATED_FAT_100G", |
|
"67": "B-PROTEINS_100G", |
|
"68": "I-PROTEINS_100G", |
|
"69": "B-IRON_100G", |
|
"70": "I-IRON_100G" |
|
}, |
|
"initializer_range": 0.02, |
|
"input_size": 224, |
|
"intermediate_size": 4096, |
|
"label2id": { |
|
"B-ADDED_SUGARS_100G": 47, |
|
"B-ADDED_SUGARS_SERVING": 9, |
|
"B-CALCIUM_100G": 51, |
|
"B-CALCIUM_SERVING": 11, |
|
"B-CARBOHYDRATES_100G": 37, |
|
"B-CARBOHYDRATES_SERVING": 59, |
|
"B-CHOLESTEROL_100G": 43, |
|
"B-CHOLESTEROL_SERVING": 57, |
|
"B-ENERGY_KCAL_100G": 55, |
|
"B-ENERGY_KCAL_SERVING": 25, |
|
"B-ENERGY_KJ_100G": 1, |
|
"B-ENERGY_KJ_SERVING": 15, |
|
"B-FAT_100G": 27, |
|
"B-FAT_SERVING": 13, |
|
"B-FIBER_100G": 49, |
|
"B-FIBER_SERVING": 31, |
|
"B-IRON_100G": 69, |
|
"B-IRON_SERVING": 41, |
|
"B-POTASSIUM_100G": 39, |
|
"B-POTASSIUM_SERVING": 35, |
|
"B-PROTEINS_100G": 67, |
|
"B-PROTEINS_SERVING": 7, |
|
"B-SALT_100G": 61, |
|
"B-SALT_SERVING": 23, |
|
"B-SATURATED_FAT_100G": 65, |
|
"B-SATURATED_FAT_SERVING": 19, |
|
"B-SERVING_SIZE": 21, |
|
"B-SODIUM_100G": 53, |
|
"B-SODIUM_SERVING": 5, |
|
"B-SUGARS_100G": 17, |
|
"B-SUGARS_SERVING": 29, |
|
"B-TRANS_FAT_100G": 45, |
|
"B-TRANS_FAT_SERVING": 33, |
|
"B-VITAMIN_D_100G": 63, |
|
"B-VITAMIN_D_SERVING": 3, |
|
"I-ADDED_SUGARS_100G": 48, |
|
"I-ADDED_SUGARS_SERVING": 10, |
|
"I-CALCIUM_100G": 52, |
|
"I-CALCIUM_SERVING": 12, |
|
"I-CARBOHYDRATES_100G": 38, |
|
"I-CARBOHYDRATES_SERVING": 60, |
|
"I-CHOLESTEROL_100G": 44, |
|
"I-CHOLESTEROL_SERVING": 58, |
|
"I-ENERGY_KCAL_100G": 56, |
|
"I-ENERGY_KCAL_SERVING": 26, |
|
"I-ENERGY_KJ_100G": 2, |
|
"I-ENERGY_KJ_SERVING": 16, |
|
"I-FAT_100G": 28, |
|
"I-FAT_SERVING": 14, |
|
"I-FIBER_100G": 50, |
|
"I-FIBER_SERVING": 32, |
|
"I-IRON_100G": 70, |
|
"I-IRON_SERVING": 42, |
|
"I-POTASSIUM_100G": 40, |
|
"I-POTASSIUM_SERVING": 36, |
|
"I-PROTEINS_100G": 68, |
|
"I-PROTEINS_SERVING": 8, |
|
"I-SALT_100G": 62, |
|
"I-SALT_SERVING": 24, |
|
"I-SATURATED_FAT_100G": 66, |
|
"I-SATURATED_FAT_SERVING": 20, |
|
"I-SERVING_SIZE": 22, |
|
"I-SODIUM_100G": 54, |
|
"I-SODIUM_SERVING": 6, |
|
"I-SUGARS_100G": 18, |
|
"I-SUGARS_SERVING": 30, |
|
"I-TRANS_FAT_100G": 46, |
|
"I-TRANS_FAT_SERVING": 34, |
|
"I-VITAMIN_D_100G": 64, |
|
"I-VITAMIN_D_SERVING": 4, |
|
"O": 0 |
|
}, |
|
"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": 16, |
|
"num_channels": 3, |
|
"num_hidden_layers": 24, |
|
"pad_token_id": 1, |
|
"patch_size": 16, |
|
"rel_2d_pos_bins": 64, |
|
"rel_pos_bins": 32, |
|
"second_input_size": 112, |
|
"shape_size": 170, |
|
"text_embed": true, |
|
"torch_dtype": "float32", |
|
"transformers_version": "4.40.2", |
|
"type_vocab_size": 1, |
|
"visual_embed": true, |
|
"vocab_size": 50265 |
|
} |
|
|