EMOJI CLASSIFIER
A nearest neighbor image embedding associated with an n-gram is determined. The nearest neighbor image embedding is associated with an image. One or more web documents associated with the n-gram and the image are provided in a content feed.
1 . A system, comprising:
a processor configured to:
determine a nearest neighbor image embedding associated with an n-gram, wherein the nearest neighbor image embedding is associated with an image; and
provide in a content feed one or more web documents associated with the n-gram and the image; and
a memory coupled with the processor, wherein the memory is configured to provide the processor with instructions.
2 . The system of claim 1 , wherein the processor is further configured to:
receive a query comprising one or more query terms; and
determine an embedding associated with the one or more query terms.
3 . The system of claim 2 , wherein the one or more query terms corresponds to the n-gram.
4 . The system of claim 3 , wherein the n-gram has an associated embedding.
5 . The system of claim 4 , wherein to determine the nearest neighbor image embedding associated with the n-gram, the processor is further configured to determine a cosine similarity between the embedding associated with the image and the embedding associated with the n-gram.
6 . The system of claim 4 , wherein to determine the nearest neighbor image embedding associated with the n-gram, the processor is further configured to determine a dot product between the embedding associated with the image and the embedding associated with the n-gram.
7 . The system of claim 4 , wherein to determine the nearest neighbor image embedding associated with the n-gram, the processor is further configured to determine a Euclidean distance between the embedding associated with the image and the embedding associated with the n-gram.
8 . The system of claim 1 , wherein the image corresponds to an emoji.
9 . The system of claim 1 , wherein processor is further configured to:
associate the n-gram with the image;
determine an embedding associated with the n-gram; and
assign the embedding associated with the n-gram to the image.
10 . The system of claim 1 , wherein the processor is further configured to:
receive a web document;
determine an entity associated with the web document;
11 . The system of claim 10 , wherein the processor is further configured to associate the determined nearest neighbor image embedding with the entity.
12 . A method, comprising:
determining a nearest neighbor image embedding associated with an n-gram, wherein the nearest neighbor image embedding is associated with an image; and
providing in a content feed one or more web documents associated with the n-gram and the image.
13 . The method of claim 11 , further comprising:
receiving a query comprising one or more query terms; and
determining an embedding associated with the one or more query terms.
14 . The method of claim 11 , wherein the one or more query terms corresponds to an n-gram, wherein the n-gram has an associated embedding.
15 . The method of claim 11 , wherein determining the nearest neighbor image embedding associated with the n-gram includes determining a cosine similarity between the embedding associated with the image and the embedding associated with the n-gram.
16 . The method of claim 11 , wherein the image corresponds to an emoji.
17 . The method of claim 11 , further comprising:
associating an n-gram with the image;
determining an embedding associated with the n-gram; and
assigning the embedding associated with the n-gram to the image.
18 . The method of claim 11 , further comprising:
receiving a web document; and
determining an entity associated with the web document.
19 . The method of claim 18 , further comprising associating the determined nearest neighbor image embedding with the entity.
20 . A computer program product, the computer program product being embodied in a non-transitory computer readable storage medium and comprising computer instructions for:
determining a nearest neighbor image embedding associated with an n-gram, wherein the nearest neighbor image embedding is associated with an image; and
providing in a content feed one or more web documents associated with the n-gram and the image.