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 for handling a query comprising a media quote, the method comprising:
receiving, at a computing device, an input comprising a query, wherein the query comprises a media quote;
identifying, from the query, a media quote;
identifying, based on the identified media quote, a media asset, wherein identifying the media quote and the media asset comprises:
chunking the query to produce one or more chunks;
generating a hash for each chunk of the one or more chunks;
identifying whether the hash is present in an index of media assets, wherein the index of media assets is generated by:
providing source media asset data, wherein the source media asset data comprises data associated with at least one media asset, the data comprising one or more words;
indexing the source media asset data to produce an index of media assets;
providing source quote data, wherein the source quote data comprises one or more quotes associated with at least one media asset, each quote comprising one or more words;
for each quote in the source quote data, identifying whether the quote is associated with a media asset in the media asset data;
where a quote is associated with a media asset, identifying whether there are one or more common words between the media asset data associated with the media asset and the quote; and
where there are one or more common words between the media asset data and the quote:
identifying, based on the quote, one or more phrases associated with the quote;
generating hashes for the quote and the one or more phrases; and
associating, in the index of media assets, the hashes for the quote and the one or more phrases with the media asset;
if the hash is present in the index of media assets, returning an indication of the media asset associated with the hash; and
performing, based on the identified media asset, an action at the computing device.
2. The method of claim 1 , wherein at least one of the processing, identifying the media quote and/or identifying the media asset is performed at the computing device.
3. The method of claim 1 , wherein:
the computing device communicates with a server; and
at least one of the processing, identifying the media quote and/or identifying the media asset is performed at a server.
4. The method of claim 1 , wherein the input is spoken input.
5. The method of claim 1 , wherein the input is text input.
6. The method of claim 1 , wherein the computing device is a mobile device, a smart speaker, a smart television or a smart set-top box.
7. The method of claim 1 , wherein the media asset is a film or a song.
8. A system for handling a query comprising a media quote, the system comprising:
a communication port; and
control circuitry configured to:
receive, at a computing device, an input comprising a query, wherein the query comprises a media quote;
identify, from the query, a media quote;
identify, based on the identified media quote, a media asset, wherein the control circuitry configured to identify the media quote and the media asset is further configured to:
chunk the query to produce one or more chunks;
generate a hash for each chunk of the one or more chunks;
identify whether the hash is present in an index of media assets, wherein the index of media assets is generated by control circuitry configured to:
receive source media asset data, wherein the source media asset data comprises data associated with at least one media asset, the data comprising one or more words;
index the source media asset data to produce an index of media assets;
receive source quote data, wherein the source quote data comprises one or more quotes associated with at least one media asset, each quote comprising one or more words;
for each quote in the source quote data, identify whether the quote is associated with a media asset in the media asset data;
where a quote is associated with a media asset, identify whether there are one or more common words between the media asset data associated with the media asset and the quote; and
where there are one or more common words between the media asset data and the quote:
identify, based on the quote, one or more phrases associated with the quote;
generate hashes for the quote and the one or more phrases; and
associate, in the index of media assets, the hashes for the quote and the one or more phrases with the media asset; and
if the hash is present in the index of media assets, return an indication of the media asset associated with the hash; and
perform, based on the identified media asset, an action at the computing device.
9. The system of claim 8 , wherein the control circuitry is further configured to perform at least one of the processing, identifying the media quote and/or identifying the media asset at the computing device.
10. The system of claim 8 , wherein the control circuitry is further configured to:
enable the computing device to communicate with a server; and
perform at least one of the processing, identifying the media quote and/or identifying the media asset at a server.
11. The system of claim 8 , wherein the control circuitry is further configured to receive a spoken input.
12. The system of claim 8 , wherein the control circuitry is further configured to receive a text input.
13. The system of claim 8 , wherein the computing device is a mobile device, a smart speaker, a smart television or a smart set-top box.
14. The system of claim 8 , wherein the media asset is a film or a song.