US11188592B2ActiveUtilityA1

Quantum superposition and entanglement of social sentiment and natural language generation

45
Assignee: IBMPriority: Feb 5, 2018Filed: Feb 5, 2018Granted: Nov 30, 2021
Est. expiryFeb 5, 2038(~11.6 yrs left)· nominal 20-yr term from priority
G06N 10/80G06F 16/90332G06F 16/3334G06N 10/00
45
PatentIndex Score
0
Cited by
14
References
21
Claims

Abstract

Generating a natural language text response to a user query is provided. Sentiment attributes of the user query are encoded into qubits as particle spins. The particle spins in encoded sentiment qubits are observed to generate spin data. A sentiment value is derived for each sentiment key term of the user query based on the generated spin data. A total sentiment of the user query is determined by combining derived sentiment values corresponding to each sentiment key term of the user query. A natural language text response to the user query is generated based on the determined total sentiment of the user query. The natural language text response is transmitted to a client device via a network.

Claims

exact text as granted — not AI-modified
What is claimed is: 
     
       1. A quantum computer-implemented method for generating a natural language text response to a user query, the computer-implemented method comprising:
 encoding, by a computer, a number of sentiment attributes of the user query in parallel into qubits in a 2 n  space as particle spins, wherein n is the number of qubits, and wherein each qubit can represent a superposition of multiple states; 
 observing, by the computer, the particle spins in encoded sentiment qubits to generate spin values, wherein each spin value is mapped to a particular sentiment key term by a natural language processor; 
 deriving, by the computer, a sentiment value for each sentiment key term of the user query based on the generated spin values; 
 determining, by the computer, a total sentiment of the user query by combining derived sentiment values corresponding to each sentiment key term of the user query; 
 identifying, by the computer, a second set of sentiment key terms that are correlated to sentiment key terms of the user query through quantum entanglement; 
 generating, by the computer, a natural language text response to the user query based on the determined total sentiment of the user query and the second set of sentiment key terms according to mappings of spin values to the sentiment key terms of the user query, wherein the natural language text response is generating according to a sentence template; and 
 transmitting, by the computer, the natural language text response to a client device via a network. 
 
     
     
       2. The computer-implemented method of  claim 1  wherein the particle spins comprises spin ups and spin downs, and further comprising:
 receiving, by the computer, the user query requesting information within an information domain from the client device via the network; 
 analyzing, by the computer, the user query using natural language processing to determine user identity and user intent corresponding to the user query; and 
 extracting, by the computer, key terms from the user query using word embeddings and dictionary files corresponding to the information domain. 
 
     
     
       3. The computer-implemented method of  claim 2  further comprising:
 performing, by the computer, sentiment analysis on extracted key terms to determine sentiment attributes of the user query. 
 
     
     
       4. The computer-implemented method of  claim 3  further comprising:
 determining, by the computer, a date range for the sentiment attributes using a time-indexed vocabulary that comprises time period specific language. 
 
     
     
       5. The computer-implemented method of  claim 4  further comprising:
 generating, by the computer, period correct sentiment of the user query based on the determined date range. 
 
     
     
       6. The computer-implemented method of  claim 1  further comprising:
 performing, by the computer, a checksum on the derived sentiment values corresponding to each sentiment key term of the user query. 
 
     
     
       7. The computer-implemented method of  claim 1 , wherein the spin values are spin voltages, wherein each spin voltage maps to a particular sentiment key term value, and wherein the particular sentiment key term value identifies a particular sentiment key term. 
     
     
       8. A quantum computer system for generating a natural language text response to a user query, the computer system comprising:
 a bus system; 
 a storage device connected to the bus system, wherein the storage device stores program instructions; and 
 a processor connected to the bus system, wherein the processor executes the program instructions to:
 encode a number of sentiment attributes of the user query in parallel into qubits in a 2 n  space as particle spins, wherein n is the number of qubits, and wherein each qubit can represent a superposition of multiple states; 
 observe the particle spins in encoded sentiment qubits to generate spin values, wherein each spin value is mapped to a particular sentiment key term by a natural language processor; 
 derive a sentiment value for each sentiment key term of the user query based on the generated spin values; 
 determine a total sentiment of the user query by combining derived sentiment values corresponding to each sentiment key term of the user query; 
 identify a second set of sentiment key terms that are correlated to sentiment key terms of the user query through quantum entanglement; 
 generate a natural language text response to the user query based on the determined total sentiment of the user query and the second set of sentiment key terms according to mappings of spin values to the sentiment key terms of the user, wherein the natural language text response is generating according to a sentence template; and 
 transmit the natural language text response to a client device via a network. 
 
 
     
     
       9. The computer system of  claim 8 , wherein the particle spins comprises spin ups and spin downs, and wherein the processor further executes the program instructions to:
 receive the user query requesting information within an information domain from the client device via the network; 
 analyze the user query using natural language processing to determine user identity and user intent corresponding to the user query; and 
 extract key terms from the user query using word embeddings and dictionary files corresponding to the information domain. 
 
     
     
       10. The computer system of  claim 9 , wherein the processor further executes the program instructions to:
 perform sentiment analysis on extracted key terms to determine sentiment attributes of the user query. 
 
     
     
       11. The computer system of  claim 10 , wherein the processor further executes the program instructions to:
 determine a date range for the sentiment attributes using a time-indexed vocabulary that comprises time period specific language. 
 
     
     
       12. The computer system of  claim 11 , wherein the processor further executes the program instructions to:
 generate period correct sentiment of the user query based on the determined date range. 
 
     
     
       13. The computer system of  claim 8 , wherein the processor further executes the program instructions to:
 perform a checksum on the derived sentiment values corresponding to each sentiment key term of the user query. 
 
     
     
       14. The computer system of  claim 8 , wherein the spin values are spin voltages, wherein each spin voltage maps to a particular sentiment key term value, and wherein the particular sentiment key term value identifies a particular sentiment key term. 
     
     
       15. A computer program product for generating a natural language text response to a user query, the computer program product comprising a computer readable storage medium having program instructions embodied therewith, the program instructions executable by a quantum computer to cause the computer to perform a method comprising:
 encoding, by the computer, a number of sentiment attributes of the user query in parallel into qubits in a 2 n  space as particle spins, wherein n is the number of qubits, and wherein each qubit can represent a superposition of multiple states; 
 observing, by the computer, the particle spins in encoded sentiment qubits to generate spin values, wherein each spin value is mapped to a particular sentiment key term by a natural language processor; 
 deriving, by the computer, a sentiment value for each sentiment key term of the user query based on the generated spin values; 
 determining, by the computer, a total sentiment of the user query by combining derived sentiment values corresponding to each sentiment key term of the user query; 
 identifying, by the computer, a second set of sentiment key terms that are correlated to sentiment key terms of the user query through quantum entanglement; 
 generating, by the computer, a natural language text response to the user query based on the determined total sentiment of the user query and the second set of sentiment key terms according to mappings of spin values to the sentiment key terms of the user, wherein the natural language text response is generating according to a sentence template; and 
 transmitting, by the computer, the natural language text response to a client device via a network. 
 
     
     
       16. The computer program product of  claim 15  wherein the particle spins comprises spin ups and spin downs, and further comprising:
 receiving, by the computer, the user query requesting information within an information domain from the client device via the network; 
 analyzing, by the computer, the user query using natural language processing to determine user identity and user intent corresponding to the user query; and 
 extracting, by the computer, key terms from the user query using word embeddings and dictionary files corresponding to the information domain. 
 
     
     
       17. The computer program product of  claim 16  further comprising:
 performing, by the computer, sentiment analysis on extracted key terms to determine sentiment attributes of the user query. 
 
     
     
       18. The computer program product of  claim 17  further comprising:
 determining, by the computer, a date range for the sentiment attributes using a time-indexed vocabulary that comprises time period specific language. 
 
     
     
       19. The computer program product of  claim 18  further comprising:
 generating, by the computer, period correct sentiment of the user query based on the determined date range. 
 
     
     
       20. The computer program product of  claim 15  further comprising:
 performing, by the computer, a checksum on the derived sentiment values corresponding to each sentiment key term of the user query. 
 
     
     
       21. The computer program product of  claim 15 , wherein the spin values are spin voltages, wherein each spin voltage maps to a particular sentiment key term value, and wherein the particular sentiment key term value identifies a particular sentiment key term.

Cited by (0)

No later patents cite this yet.

References (0)

No backward citations on record.