Systems and methods to handle queries comprising a media quote
Systems and methods for handling a query comprising a media quote are provided. One example method includes receiving, at a computing device, an input comprising a query. A media quote is identified based on the query. A media asset is identified based on the identified media quote. An action is performed at the computing device, the action based on the identified media asset.
1 . A method comprising:
generating an index of media assets by:
identifying a plurality of quotes, each quote associated with a media asset title;
for each quote of the plurality of quotes:
generating one or more hashes for the quote;
associating, in the index of media assets, the one or more hashes for the quote with the media asset title associated with the quote; and
storing the one or more hashes for the quote in association with the media asset title in the index of media assets.
2 . The method of claim 1 , wherein the generating the one or more hashes for the quote is based at least in part on identifying one or more common words between the media asset title and the quote.
3 . The method of claim 1 , further comprising:
identifying, for each quote in the plurality of quotes, one or more phrases associated with the quote;
generating hashes for the one or more phrases;
associating, in the index of media assets, the hashes for the one or more phrases with the quote and the media asset title; and
storing the hashes for the one or more phrases in association with the quote and the media asset title in the index of media assets.
4 . The method of claim 3 wherein the one or more phrases comprises a subset of one or more words of the quote.
5 . The method of claim 3 , further comprising:
determining whether the one or more phrases have one or more phonetic or lexical variants; and, if a phrase has the one or more phonetic or lexical variants:
generating hashes for the one or more phonetic or lexical variants of the one or more phrases;
associating, in the index of media assets, the hashes for the one or more phonetic or lexical variants of the one or more phrases with the one or more phrases, the quote, and the media asset title; and
storing the hashes for the one or more phonetic or lexical variants of the one or more phrases in association with the one or more phrases, the quote, and the media asset title in the index of media assets.
6 . The method of claim 5 , wherein the determining whether the one or more phrases have the one or more phonetic or lexical variants is performed via a Soundex or a Lexical normalization algorithm.
7 . The method of claim 1 , further comprising:
receiving an input hash from a computing device; and
based at least in part on determining that the input hash is present in the index of media assets, transmitting a media asset associated with the input hash to the computing device.
8 . The method of claim 7 , wherein the determining that the input hash is present in the index of media assets comprises matching the input hash with at least one stored hash of the index of media assets.
9 . The method of claim 8 , wherein the at least one stored hash comprises a hash for one or more phrases, a quote, or a media asset title.
10 . The method of claim 1 , further comprising
receiving an input hash from a computing device; and
based at least in part on determining that the input hash is present in the index of media assets, transmitting a media asset title associated with the input hash to the computing device.
11 . A system comprising:
control circuitry configured to generate an index of media assets by:
identifying a plurality of quotes, each quote associated with a media asset title; and
for each quote of the plurality of quotes:
generating one or more hashes for the quote; and
associating, in the index of media assets, the one or more hashes for the quote with the media asset title associated with the quote; and
memory circuitry configured to:
store the one or more hashes for the quote in association with the media asset title in the index of media assets.
12 . The system of claim 11 , wherein the generating the one or more hashes for the quote is based at least in part on identifying one or more common words between the media asset title and the quote.
13 . The system of claim 11 , wherein:
the control circuitry is further configured to:
identify, for each quote in the plurality of quotes, one or more phrases associated with the quote;
generate hashes for the one or more phrases; and
associate, in the index of media assets, the hashes for the one or more phrases with the quote and the media asset title; and
the memory circuitry is further configured to:
store the hashes for the one or more phrases in association with the quote and the media asset title in the index of media assets.
14 . The system of claim 13 wherein the one or more phrases comprises a subset of one or more words of the quote.
15 . The system of claim 13 , wherein:
the control circuitry is further configured to:
determine whether the one or more phrases have one or more phonetic or lexical variants; and, if a phrase has the one or more phonetic or lexical variants:
generate hashes for the one or more phonetic or lexical variants of the one or more phrases; and
associate, in the index of media assets, the hashes for the one or more phonetic or lexical variants of the one or more phrases with the one or more phrases, the quote, and the media asset title; and
the memory circuitry is further configured to:
store the hashes for the one or more phonetic or lexical variants of the one or more phrases in association with the one or more phrases, the quote, and the media asset title in the index of media assets.
16 . The system of claim 15 , wherein the determining whether the one or more phrases have the one or more phonetic or lexical variants is performed via a Soundex or a Lexical normalization algorithm.
17 . The system of claim 11 , wherein the control circuitry is further configured to:
receive an input hash from a computing device; and
based at least in part on determining that the input hash is present in the index of media assets, transmit a media asset associated with the input hash to the computing device.
18 . The system of claim 17 , wherein the determining that the input hash is present in the index of media assets comprises matching the input hash with at least one stored hash of the index of media assets.
19 . The system of claim 18 , wherein the at least one stored hash comprises a hash for one or more phrases, a quote, or a media asset title.
20 . The system of claim 11 , wherein the control circuitry is further configured to:
receive an input hash from a computing device; and
based at least in part on determining that the input hash is present in the index of media assets, transmitting a media asset title associated with the input hash to the computing device.