Classifying search queries on online social networks
First Claim
1. A method comprising:
- receiving, from a client system of a first user of an online social network, a search query inputted by the first user, wherein the search query comprises one or more n-grams;
calculating a needle-confidence score for the search query, wherein the needle-confidence score is calculated by a needle-intent classifier based on at least the n-grams of the search query and a language model analysis of the n-grams, and wherein the needle-confidence score represents a probability that the search query was intended as a needle search for specific content objects associated with the first user'"'"'s social network connections and previously viewed by the first user;
classifying the search query as a needle search if the calculated needle-confidence score is above a threshold confidence score;
identifying, responsive to the classification of the search query as a needle search, one or more content objects matching the search query, each identified content object being associated with the first user'"'"'s social network connections and previously viewed by the first user; and
generating a plurality of search-result modules, each search-result module comprising one or more search results referencing one or more content objects matching the search query, respectively, wherein one of the search-result modules is a social module, wherein a number of search results in the social module is based on the classification of the search query as a needle search, and wherein one or more of the search results in the social module reference one or more of the identified content objects associated with the first user'"'"'s social network connections and previously viewed by the first user.
2 Assignments
0 Petitions
Accused Products
Abstract
In one embodiment, a method includes receiving a search query inputted by a first user, wherein the search query comprises one or more n-grams; calculating a needle-confidence score for the search query that is calculated by a needle-intent classifier based on at least the n-grams of the search query and a language model analysis of the n-grams, and wherein the needle-confidence score represents a probability that the search query was intended as a needle search; classifying the search query as a needle search if the calculated needle-confidence score is above a threshold confidence score; and generating a plurality of search-result modules, each search-result module comprising one or more search results matching the search query, wherein one of the search-result modules is a social module, and wherein the number of search results in the social module is based on the classification of the search query as a needle search.
-
Citations
19 Claims
-
1. A method comprising:
-
receiving, from a client system of a first user of an online social network, a search query inputted by the first user, wherein the search query comprises one or more n-grams; calculating a needle-confidence score for the search query, wherein the needle-confidence score is calculated by a needle-intent classifier based on at least the n-grams of the search query and a language model analysis of the n-grams, and wherein the needle-confidence score represents a probability that the search query was intended as a needle search for specific content objects associated with the first user'"'"'s social network connections and previously viewed by the first user; classifying the search query as a needle search if the calculated needle-confidence score is above a threshold confidence score; identifying, responsive to the classification of the search query as a needle search, one or more content objects matching the search query, each identified content object being associated with the first user'"'"'s social network connections and previously viewed by the first user; and generating a plurality of search-result modules, each search-result module comprising one or more search results referencing one or more content objects matching the search query, respectively, wherein one of the search-result modules is a social module, wherein a number of search results in the social module is based on the classification of the search query as a needle search, and wherein one or more of the search results in the social module reference one or more of the identified content objects associated with the first user'"'"'s social network connections and previously viewed by the first user. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17)
-
-
18. One or more computer-readable non-transitory storage media embodying software that is operable when executed to:
-
receive, from a client system of a first user of an online social network, a search query inputted by the first user, wherein the search query comprises one or more n-grams; calculate a needle-confidence score for the search query, wherein the needle-confidence score is calculated by a needle-intent classifier based on at least the n-grams of the search query and a language model analysis of the n-grams, and wherein the needle-confidence score represents a probability that the search query was intended as a needle search for specific content objects associated with the first user'"'"'s social network connections and previously viewed by the first user; classify the search query as a needle search if the calculated needle-confidence score is above a threshold confidence score; identify, responsive to the classification of the search query as a needle search, one or more content objects matching the search query, each identified content object being associated with the first user'"'"'s social network connections and previously viewed by the first user; and generate a plurality of search-result modules, each search-result module comprising one or more search results referencing one or more content objects matching the search query, respectively, wherein one of the search-result modules is a social module, wherein a number of search results in the social module is based on the classification of the search query as a needle search, and wherein one or more of the search results in the social module reference one or more of the identified content objects associated with the first user'"'"'s social network connections and previously viewed by the first user.
-
-
19. A system comprising:
- one or more processors; and
a non-transitory memory coupled to the processors comprising instructions executable by the processors, the processors operable when executing the instructions to;receive, from a client system of a first user of an online social network, a search query inputted by the first user, wherein the search query comprises one or more n-grams; calculate a needle-confidence score for the search query, wherein the needle-confidence score is calculated by a needle-intent classifier based on at least the n-grams of the search query and a language model analysis of the n-grams, and wherein the needle-confidence score represents a probability that the search query was intended as a needle search for specific content objects associated with the first user'"'"'s social network connections and previously viewed by the first user; classify the search query as a needle search if the calculated needle-confidence score is above a threshold confidence score; identify, responsive to the classification of the search query as a needle search, one or more content objects matching the search query, each identified content object being associated with the first user'"'"'s social network connections and previously viewed by the first user; and generate a plurality of search-result modules, each search-result module comprising one or more search results referencing one or more content objects matching the search query, respectively, wherein one of the search-result modules is a social module, wherein a number of search results in the social module is based on the classification of the search query as a needle search, and wherein one or more of the search results in the social module reference one or more of the identified content objects associated with the first user'"'"'s social network connections and previously viewed by the first user.
- one or more processors; and
Specification