rondaravaol commited on
Commit
6a54372
·
1 Parent(s): 0a4861f

Initial model

Browse files
model/OxMarkupLM.pt/config.json ADDED
@@ -0,0 +1,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "microsoft/markuplm-base",
3
+ "architectures": [
4
+ "MarkupLMForTokenClassification"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "bos_token_id": 0,
8
+ "classifier_dropout": null,
9
+ "eos_token_id": 2,
10
+ "gradient_checkpointing": false,
11
+ "hidden_act": "gelu",
12
+ "hidden_dropout_prob": 0.1,
13
+ "hidden_size": 768,
14
+ "id2label": {
15
+ "0": "none",
16
+ "1": "title",
17
+ "2": "content",
18
+ "3": "author",
19
+ "4": "date",
20
+ "5": "header",
21
+ "6": "footer",
22
+ "7": "rail",
23
+ "8": "advertisement",
24
+ "9": "navigation"
25
+ },
26
+ "initializer_range": 0.02,
27
+ "intermediate_size": 3072,
28
+ "label2id": {
29
+ "advertisement": 8,
30
+ "author": 3,
31
+ "content": 2,
32
+ "date": 4,
33
+ "footer": 6,
34
+ "header": 5,
35
+ "navigation": 9,
36
+ "none": 0,
37
+ "rail": 7,
38
+ "title": 1
39
+ },
40
+ "layer_norm_eps": 1e-05,
41
+ "max_depth": 50,
42
+ "max_position_embeddings": 514,
43
+ "max_xpath_subs_unit_embeddings": 1024,
44
+ "max_xpath_tag_unit_embeddings": 256,
45
+ "model_type": "markuplm",
46
+ "num_attention_heads": 12,
47
+ "num_hidden_layers": 12,
48
+ "pad_token_id": 1,
49
+ "position_embedding_type": "absolute",
50
+ "subs_pad_id": 1001,
51
+ "tag_pad_id": 216,
52
+ "torch_dtype": "float32",
53
+ "transformers_version": "4.41.2",
54
+ "type_vocab_size": 1,
55
+ "use_cache": true,
56
+ "vocab_size": 50267,
57
+ "xpath_unit_hidden_size": 32
58
+ }
model/OxMarkupLM.pt/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0dac89414051dab71df4c5e141d1e0784c857d5ffe1b12a5681984c32f9138c9
3
+ size 538520088
requirements.txt ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ torch
2
+ transformers
3
+ numpy
4
+ scikit-learn
5
+ pandas
6
+ requests
7
+ beautifulsoup4
8
+ glob2
9
+ re