--- task_categories: - visual-question-answering language: - en pretty_name: Scientific Figures and Captions size_categories: - 1M compressedfigures_part2.tar.gz # unzip second set of images tar xf compressedfigures_part2.tar.gz # You're good to go! ``` This will extract the contents into the `dataset/figures/` directory. Ensure that you have enough storage space to accommodate the uncompressed images. ## Usage Example To use the dataset in your Python projects, you'll need to read the Parquet file into a DataFrame. Here is an example using `pandas`: ```python import pandas as pd # Load the dataset into a DataFrame df = pd.read_parquet('dataset.parquet') # Display the first few entries df.head() ``` Once the dataset is loaded, you can use it as follows: ```python from PIL import Image import matplotlib.pyplot as plt # Example function to display an image with its caption def show_image_with_caption(image_path, caption): img = Image.open(image_path) plt.imshow(img) plt.title(caption) plt.axis('off') # Hide the axis plt.show() # Display the first image and its caption first_image_path = df.loc[0, 'image_filename'] first_caption = df.loc[0, 'caption'] show_image_with_caption(first_image_path, first_caption) ``` ## Acknowledgment Special thanks to arxiv for providing access to all of the research papers.