×

Natural-language rendering of structured search queries

  • US 9,367,607 B2
  • Filed: 12/31/2012
  • Issued: 06/14/2016
  • Est. Priority Date: 12/31/2012
  • Status: Active Grant
First Claim
Patent Images

1. A method comprising, by a computing device:

  • 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 a first user associated with an online social network; and

    a plurality of second nodes that each correspond to a concept or a second user associated with the online social network;

    receiving, from a client system of the first user, an unstructured text query inputted by the first user;

    identifying, based on the unstructured text query, one or more edges and one or more second nodes of the social graph, each of the identified edges and identified second nodes corresponding to at least a portion of the unstructured text query;

    accessing a context-free grammar model comprising a grammar forest with a plurality of grammars, each grammar comprising one or more non-terminal tokens and one or more query tokens, wherein the grammar forest is organized as an ordered tree comprising a plurality of non-terminal tokens and a plurality of query tokens, each grammar being an ordered sub-tree adjoining one or more other grammars via a non-terminal token;

    identifying, based on the identified edges and identified second nodes of the social graph, one or more query tokens in one or more grammars of the grammar forest, each identified query token corresponding to at least one of the identified second nodes or identified edges of the social graph;

    selecting one or more grammars of the grammar forest, each selected grammar comprising at least one query token corresponding to each of the identified edges and identified second nodes of the social graph;

    generating one or more structured queries, each structured query corresponding to a selected grammar, wherein each structured query is based on a natural-language string generated by the corresponding selected grammar, each structured query comprising at least one query token corresponding to each of the identified edges and identified second nodes of the social graph; and

    sending, to the client system of the first user, one or more of the structured queries as suggested queries for display to the first user in response to the unstructured text query inputted by the first user.

View all claims
  • 2 Assignments
Timeline View
Assignment View
    ×
    ×