13. A non-transitory computer-readable storage medium storing one or more sequences of instructions which, when executed by one or more processors, causes the one or more processors to perform: detecting one or more faces in one or more first digital images; identifying one or more named entities contained in text of a document that is associated with the one or more first digital images; for each particular named entity of the one or more named entities: sending, to a search engine, a query based on the particular named entity; and receiving, from the search engine, in response to execution of the query by the search engine, one or more second digital images; calculating a plurality of scores, wherein the plurality of scores includes a single score for each pairing of a set of pairings, wherein the set of pairings includes a pairing between each face of the one or more faces detected in the one or more first digital images and each named entity of the one or more named entities; wherein each score of the plurality of scores indicates a similarity between a particular face of the one or more faces and the one or more second digital images received from the search engine in response to execution of a query based on a particular named entity of the one or more named entities; storing, in a non-transitory storage medium, a mapping, based at least in part on the plurality of scores, between (1) each face of a subset of the faces detected in the one or more first digital images and (2) a particular named entity of the one or more named entities.
13. A non-transitory computer-readable storage medium storing one or more sequences of instructions which, when executed by one or more processors, causes the one or more processors to perform: detecting one or more faces in one or more first digital images; identifying one or more named entities contained in text of a document that is associated with the one or more first digital images; for each particular named entity of the one or more named entities: sending, to a search engine, a query based on the particular named entity; and receiving, from the search engine, in response to execution of the query by the search engine, one or more second digital images; calculating a plurality of scores, wherein the plurality of scores includes a single score for each pairing of a set of pairings, wherein the set of pairings includes a pairing between each face of the one or more faces detected in the one or more first digital images and each named entity of the one or more named entities; wherein each score of the plurality of scores indicates a similarity between a particular face of the one or more faces and the one or more second digital images received from the search engine in response to execution of a query based on a particular named entity of the one or more named entities; storing, in a non-transitory storage medium, a mapping, based at least in part on the plurality of scores, between (1) each face of a subset of the faces detected in the one or more first digital images and (2) a particular named entity of the one or more named entities. 24. The non-transitory computer-readable storage medium of claim 13 , wherein the mapping is computed based on the plurality of scores and a maximum likelihood assignment between the one or more faces detected in the one or more first digital images and the one or more named entities.