sungjae98 commited on
Commit
b433e25
·
verified ·
1 Parent(s): d0e5f5a

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +113 -54
README.md CHANGED
@@ -1,62 +1,121 @@
1
  ---
2
- dataset_info:
3
- - config_name: drawings
4
- features:
5
- - name: image_id
6
- dtype: string
7
- - name: source
8
- dtype: string
9
- - name: ref_number
10
- dtype: string
11
- - name: page
12
- dtype: int32
13
- - name: image
14
- dtype: image
15
- splits:
16
- - name: train
17
- num_bytes: 39848628433
18
- num_examples: 298935
19
- download_size: 42150387144
20
- dataset_size: 39848628433
21
- - config_name: noc4pc
22
- features:
23
- - name: application_number
24
- dtype: string
25
- - name: claim_number
26
- dtype: int64
27
- - name: context
28
- dtype: string
29
- - name: prior_art_specifications
30
- dtype: string
31
- - name: answer
32
- dtype: string
33
- - name: application_image_ids
34
- list: string
35
- - name: prior_art_image_ids
36
- list: string
37
- splits:
38
- - name: test
39
- num_bytes: 117062704
40
- num_examples: 2884
41
- - name: validation
42
- num_bytes: 292591832
43
- num_examples: 7392
44
- - name: train
45
- num_bytes: 5605419085
46
- num_examples: 136211
47
- download_size: 898865796
48
- dataset_size: 6015073621
49
  configs:
50
- - config_name: drawings
51
- data_files:
52
- - split: train
53
- path: drawings/train-*
54
  - config_name: noc4pc
55
  data_files:
56
- - split: test
57
- path: noc4pc/test-*
58
  - split: validation
59
  path: noc4pc/validation-*
 
 
 
 
60
  - split: train
61
- path: noc4pc/train-*
62
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ license: cc-by-nc-4.0
3
+ task_categories:
4
+ - image-text-to-text
5
+ - visual-question-answering
6
+ language:
7
+ - en
8
+ tags:
9
+ - patent
10
+ - patent-examination
11
+ - multimodal
12
+ - legal
13
+ - uspto
14
+ - novelty
15
+ - non-obviousness
16
+ pretty_name: PANORAMA-NOC4PC-Multimodal
17
+ size_categories:
18
+ - 100K<n<1M
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
19
  configs:
 
 
 
 
20
  - config_name: noc4pc
21
  data_files:
22
+ - split: train
23
+ path: noc4pc/train-*
24
  - split: validation
25
  path: noc4pc/validation-*
26
+ - split: test
27
+ path: noc4pc/test-*
28
+ - config_name: drawings
29
+ data_files:
30
  - split: train
31
+ path: drawings/train-*
32
  ---
33
+
34
+ # PANORAMA-NOC4PC-Multimodal
35
+
36
+ A **multimodal extension** of the NOC4PC benchmark from
37
+ [PANORAMA](https://huggingface.co/datasets/LG-AI-Research/PANORAMA)
38
+ (Lim et al., *PANORAMA: A Dataset and Benchmarks Capturing Decision Trails and
39
+ Rationales in Patent Examination*, NeurIPS 2025 Datasets & Benchmarks).
40
+
41
+ The original NOC4PC task asks a model to judge a patent claim's patentability
42
+ (**§102 / §103 / allow**) from **text only** (claim + cited prior-art text).
43
+ This dataset adds the **drawings** that real examiners actually look at — for
44
+ **both the patent application and every cited prior-art reference** — so the
45
+ task can be studied as a true vision-language problem.
46
+
47
+ ## Why two configs (reference layout)
48
+
49
+ In NOC4PC the same drawing is shared by many rows (a single application appears
50
+ in ~18 claim-level rows on average; popular prior-art patents appear in hundreds).
51
+ Embedding the image in every row would duplicate it dozens of times and blow the
52
+ dataset up past 600 GB. Instead — exactly like VQAv2 / DocVQA / OK-VQA — we store
53
+ **each unique drawing once** and let task rows **reference it by `image_id`**:
54
+
55
+ | config | one row = | key columns |
56
+ |---|---|---|
57
+ | `noc4pc` | one claim-level examination instance | `..., application_image_ids[], prior_art_image_ids[]` |
58
+ | `drawings` | one rendered drawing **page** | `image_id, source, ref_number, page, image` |
59
+
60
+ `image_id` format: `app_{applicationNumber}_p{N}` (application) and
61
+ `cited_{patentNumber}_p{N}` (prior art), where `N` is the 1-based page number.
62
+ Drawings are rendered from the original USPTO drawing PDFs at 120 dpi (all pages).
63
+
64
+ ## Columns
65
+
66
+ **`noc4pc`**
67
+ - `application_number`, `claim_number` — the target claim
68
+ - `context` (JSON string) — application title / abstract / claims
69
+ - `prior_art_specifications` (JSON string) — cited prior art (title, abstract, claims, cited paragraph)
70
+ - `answer` (JSON string) — `{"code": "102" | "103" | "ALLOW", "reason": ...}` (gold label)
71
+ - `application_image_ids` (list[str]) — drawing pages of the application
72
+ - `prior_art_image_ids` (list[str]) — drawing pages of all cited prior arts
73
+
74
+ **`drawings`**
75
+ - `image_id` (str), `source` (`application` | `prior_art`), `ref_number` (str),
76
+ `page` (int), `image` (`datasets.Image`)
77
+
78
+ ## Usage
79
+
80
+ ```python
81
+ from datasets import load_dataset
82
+
83
+ REPO = "sungjae98/PANORAMA-NOC4PC-multimodal"
84
+
85
+ # 1) load both configs
86
+ noc = load_dataset(REPO, "noc4pc", split="test")
87
+ draw = load_dataset(REPO, "drawings", split="train") # the image bank
88
+
89
+ # 2) build an image_id -> PIL.Image lookup (lazy; decode on access)
90
+ id2idx = {iid: i for i, iid in enumerate(draw["image_id"])}
91
+ def get_image(image_id):
92
+ return draw[id2idx[image_id]]["image"] # PIL.Image
93
+
94
+ # 3) assemble one multimodal example
95
+ ex = noc[0]
96
+ app_imgs = [get_image(i) for i in ex["application_image_ids"]]
97
+ prior_imgs = [get_image(i) for i in ex["prior_art_image_ids"]]
98
+ print(ex["application_number"], ex["claim_number"], "->", eval(ex["answer"])["code"])
99
+ print("application pages:", len(app_imgs), " prior-art pages:", len(prior_imgs))
100
+ # feed ex["context"] + ex["prior_art_specifications"] + app_imgs + prior_imgs to a VLM
101
+ ```
102
+
103
+ > Tip: for memory-tight training, don't materialize all of `draw`; index it once and
104
+ > decode images on demand, or filter `draw` to the `image_id`s you need per batch.
105
+
106
+ ## Splits (noc4pc)
107
+
108
+ | split | rows |
109
+ |---|---|
110
+ | train | 136,211 |
111
+ | validation | 7,392 |
112
+ | test | 2,884 |
113
+
114
+ ## Provenance & license
115
+
116
+ Drawings and text are derived from the public USPTO record and the PANORAMA
117
+ dataset. Released under **CC-BY-NC-4.0**, following the original PANORAMA license.
118
+ This is an unofficial, research-oriented extension and is not affiliated with the
119
+ original authors or LG AI Research.
120
+
121
+ If you use this, please cite the original PANORAMA paper.