Skip to content

Models and scripts related to MeMAD automatic cross-lingual retrieval experiments.

License

Notifications You must be signed in to change notification settings

MeMAD-project/cross-lingual-retrieval

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MeMAD cross-lingual content retrieval

This repository contains the combined scripts and models related to the MeMAD automatic cross-lingual content retrieval experiments.

Dependencies

Usage

Before you run any of the scripts, make sure you edit the configuration file paths.conf, so that the variables point to the correct paths for your system.

Downloading and staging the Wikipedia data

The scripts responsible for building the experimental settings require modules from the ImageCLEF Wikipedia image retrieval 2010-2011 dataset. First, register to the dataset management system linked from the dataset page, and log in to get the credentials provided to you for resource access. Using those credentials, download the distributed archive files for the image collection (1.tar.gz through 26.tar.gz), the corresponding visual features (features.zip) and text metadata (metadata.zip), and the 2011 topic metadata (wikipedia_topics_2011.zip) including visual features for the example images (wikipedia_topic_examples_features_2011.zip). Afterwards, place the archives into a common directory and change the path variable WIKIDATA-DIR in the file paths.conf to point to that directory. Finally, extract each archive into a subfolder of its own (e.g. features/) named after the archive file (features.zip). Extract the image archives altogether into a subfolder named images/, rather than 1/ through 26/.

Reproducing data indexed for search

All sets of metadata that have been indexed and used in the MeMAD search performance experiments have been released via the MeMAD data for automatic cross-lingual retrieval experiments collection on Zenodo, under the same CC-BY-SA 3.0 license as the original dataset. These deposits can be freely downloaded and extracted in the data folder in order to replicate the search indices distributed through this repository (zettair-index-all.py).

Alternatively, the whole data may be reproduced using only the original dataset, by downloading and staging the data as instructed, and running the collate-metadata.py and generate-setting-variants.py scripts in order. The first script should compile setting-original.json, and the other one should generate all the other settings.

Experimental results

Our experimental findings from using the data augmentation and content retrieval techniques collected in this repository have been described in the public MeMAD deliverable D4.4 Report on Cross-Lingual Content Retrieval Based on Automatic Translation. Once all the data and software dependencies are in place, the results can be easily reproduced by executing the zettair-query-all.py script with default settings, under the scripts directory. Alternatively, a per-topic detailed evaluation can be requested through the --verbose option when running the script.

Metadata setting URI format

Various views and enrichments of the original metadata have been used to generate the different search indices distributed with this repository. The name of each variant is a URI indicating the composition of the corresponding data.

  • setting-original: The metadata from the original dataset, without any changes.
  • setting-masked: Images with multilingual metadata were only allowed to keep one language.
  • *-only-qrels: Excludes images for which the original data did not have any explicit relevance annotations.
  • *.autocaps: Adds automatically-generated captions for each image, for each language for which it had metadata.
  • *.translations: Adds translations in the two other languages for each metadata stratum of each image.
  • *.fully-enriched: Adds both automatically-generated captions and metadata translations.

About

Models and scripts related to MeMAD automatic cross-lingual retrieval experiments.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published