HomePhabricator

Suggestions endpoints for SDC image caption addition/translation
c416594f48bfUnpublished

Authored by Mholloway on May 30 2019, 2:40 PM.

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.
This commit has been deleted in the repository: it is no longer reachable from any branch, tag, or ref.

Description

Suggestions endpoints for SDC image caption addition/translation

Adds endpoints for suggesting Commons files for SDC caption editing.

The suggestion algorithm is as follows:

  1. A pool of 500 Commons file candidates with the required source and target language structured caption characteristics is requested using the CirrusSearch-powered wikimediaeditortaskssuggestions Action API module;
  1. The candidate set is narrowed to a random sample of 50 images;
  1. An imageinfo query is made for the MIME type and global usage data for the remaining candidates;
  1. Non-image files are filtered out, and captions are requested for the remaining candidates;
  1. Candidates are given a final validity check, and those that remain are returned.

The service's minor version to 0.6.0 to reflect the addition of the new
endpoints.

Bug: T209997
Bug: T220034
Change-Id: I862bd382e4d93921a92467bd5a66435acd3ee53a

Details