--- license: cc-by-nc-4.0 task_categories: - image-text-to-text - visual-question-answering language: - en tags: - patent - patent-examination - multimodal - legal - uspto - novelty - non-obviousness pretty_name: PANORAMA-NOC4PC-Multimodal size_categories: - 100K PIL.Image lookup (lazy; decode on access) id2idx = {iid: i for i, iid in enumerate(draw["image_id"])} def get_image(image_id): return draw[id2idx[image_id]]["image"] # PIL.Image # 3) assemble one multimodal example ex = noc[0] app_imgs = [get_image(i) for i in ex["application_image_ids"]] prior_imgs = [get_image(i) for i in ex["prior_art_image_ids"]] print(ex["application_number"], ex["claim_number"], "->", eval(ex["answer"])["code"]) print("application pages:", len(app_imgs), " prior-art pages:", len(prior_imgs)) # feed ex["context"] + ex["prior_art_specifications"] + app_imgs + prior_imgs to a VLM ``` > Tip: for memory-tight training, don't materialize all of `draw`; index it once and > decode images on demand, or filter `draw` to the `image_id`s you need per batch. ## Splits (noc4pc) | split | rows | |---|---| | train | 136,211 | | validation | 7,392 | | test | 2,884 | ## Provenance & license Drawings and text are derived from the public USPTO record and the PANORAMA dataset. Released under **CC-BY-NC-4.0**, following the original PANORAMA license. This is an unofficial, research-oriented extension and is not affiliated with the original authors or LG AI Research. If you use this, please cite the original PANORAMA paper.