AMBIGUOUS STRUCTURED SEARCH QUERIES ON ONLINE SOCIAL NETWORKS
First Claim
Patent Images
1. A method comprising, by a computing device:
- receiving, from a client device of a first user of an online social network, an unstructured text query comprising an ambiguous n-gram, the online social network being associated with a plurality of objects;
identifying one or more objects corresponding to the ambiguous n-gram;
generating a first set of structured queries, each structured query from the first set of structured queries corresponding to an identified object, the structured query comprising a reference to the corresponding identified object;
receiving, from the client device of the first user, a selection of a structured query corresponding to a first object of the identified objects; and
generating a second set of structured queries, each structured query of the second set of structured queries comprising a reference to the first object.
2 Assignments
0 Petitions
Accused Products
Abstract
In one embodiment, a method includes accessing a social graph that includes a plurality of nodes and edges, receiving an unstructured text query comprising an ambiguous n-gram, identifying nodes and edges that correspond to the ambiguous n-gram, generating a first set of structured queries corresponding to the identified second nodes and edges, receiving from the first user a selection of a first structured query form the first set, and generating a second set of structured queries based on the selected first structured query.
-
Citations
20 Claims
-
1. A method comprising, by a computing device:
-
receiving, from a client device of a first user of an online social network, an unstructured text query comprising an ambiguous n-gram, the online social network being associated with a plurality of objects; identifying one or more objects corresponding to the ambiguous n-gram; generating a first set of structured queries, each structured query from the first set of structured queries corresponding to an identified object, the structured query comprising a reference to the corresponding identified object; receiving, from the client device of the first user, a selection of a structured query corresponding to a first object of the identified objects; and generating a second set of structured queries, each structured query of the second set of structured queries comprising a reference to the first object.
-
-
2. The method of claim 1, further comprising:
accessing a social graph comprising a plurality of nodes and a plurality of edges connecting the nodes, each of the edges between two of the nodes representing a single degree of separation between them, the nodes comprising; a first node corresponding to the first user; and a plurality of second nodes that each correspond to an object of the plurality of objects associated with the online social network.
-
3. The method of claim 2, wherein each structured query further comprises a reference to one or more edges of the plurality of edges.
-
4. The method of claim 2, wherein one or more of the structured queries of the second set of structured queries further comprises references to one or more second nodes of the plurality of second nodes and one or more edges of the plurality of edges.
-
5. The method of claim 1, wherein receiving from the first user the unstructured text query comprises receiving one or more characters of a character string as the first user at the client device enters the character string into a graphical user interface.
-
6. The method of claim 5, wherein the graphical user interface comprises a query field, and wherein the character string is entered by the first user into the query field.
-
7. The method of claim 5, wherein the graphical user interface comprises a user interface of a native application associated with the online social network on the client system of the first user.
-
8. The method of claim 5, wherein the graphical user interface comprises a webpage of the online social network accessed by a browser client of the client system of the first user.
-
9. The method of claim 1, wherein for each structured query from the first set of structured queries, the reference to the identified object is highlighted to indicate the reference corresponds to the ambiguous n-gram.
-
10. The method of claim 1, wherein for each structured query from the first set of structured queries, the structured query further comprises a snippet comprising contextual information about the identified object corresponding to the structured query.
-
11. The method of claim 1, further comprising sending the first set of structured queries to the client device of the first user for display, wherein each structured query of the first set of structured queries is selectable by the first user to indicate that the identified object referenced in the structured query matches an intent of the user for the ambiguous n-gram.
-
12. The method of claim 1, further comprising sending the first set of structured queries for display to the first user as the first user enters the unstructured text query into a graphical user interface, the display of the first set of structured queries to the first user enabling the first user to select the first structured query from the first set of structured queries.
-
13. The method of claim 1, further comprising receiving from the first user a selection of a second structured query from the second set of structured queries.
-
14. The method of claim 13, further comprising:
-
generating one or more search results corresponding to the second structured query; and sending a search-results page to the client device of the first user for display, the search-results page comprising one or more of the search results.
-
-
15. The method of claim 1, wherein identifying one or more objects corresponding to the ambiguous n-gram comprises:
-
determining a score for each n-gram that the n-gram corresponds to a object of the plurality of objects; and identifying each object having a score greater than a threshold score, wherein at least two objects have a score greater than the threshold score.
-
-
16. The method of claim 15, wherein the score for each n-gram is a probability that the n-gram correspond to a object of the plurality of objects.
-
17. The method of claim 15, wherein determining the score that an n-gram corresponds to a object of the plurality of objects is based on the degree of separation between the first user and the object within the online social network.
-
18. The method of claim 15, wherein determining the score for each n-gram is based on a search history associated with the first user.
-
19. One or more computer-readable non-transitory storage media embodying software that is operable when executed to:
-
receive, from a client device of a first user of an online social network, an unstructured text query comprising an ambiguous n-gram, the online social network being associated with a plurality of objects; identify one or more objects corresponding to the ambiguous n-gram; generate a first set of structured queries, each structured query from the first set of structured queries corresponding to an identified object, the structured query comprising a reference to the corresponding identified object; receive, from the client device of the first user, a selection of a structured query corresponding to a first object of the identified objects; and generate a second set of structured queries, each structured query of the second set of structured queries comprising a reference to the first object.
-
-
20. A system comprising:
- one or more processors; and
a memory coupled to the processors comprising instructions executable by the processors, the processors operable when executing the instructions to;receive, from a client device of a first user of an online social network, an unstructured text query comprising an ambiguous n-gram, the online social network being associated with a plurality of objects; identify one or more objects corresponding to the ambiguous n-gram; generate a first set of structured queries, each structured query from the first set of structured queries corresponding to an identified object, the structured query comprising a reference to the corresponding identified object; receive, from the client device of the first user, a selection of a structured query corresponding to a first object of the identified objects; and generate a second set of structured queries, each structured query of the second set of structured queries comprising a reference to the first object.
- one or more processors; and
Specification