1. A method for providing an answer to an input question containing at least one time-sensitive word or at least one time-sensitive phrase using natural language processing (NLP), the method comprising:
receiving the input question;
performing natural language processing (NLP) analysis on the input question to extract a required value phrase;
forming at least one mathematical equation based on the extracted required value phrase;
forming at least one interim question based on the extracted required value phrase;
solving the at least one formed mathematical equation and the at least one formed interim question; and
narrating the answer to the input question in natural language based on the solved at least one interim question or the solved at least one mathematical equation.
2. The method of claim 1 further comprising:
determining at least one relevant variable based on the extracted required value phrase; and
determining at least one current value for the at least one determined relevant variable.
3. The method of claim 1, wherein identifying the at least one time-sensitive word or the at least one time-sensitive phrase comprises the use of a T-Word Dictionary.
4. The method of claim 1, wherein an output from the natural language processing (NLP) is stored in a temporary repository or held in memory.
5. The method of claim 3, wherein the T-Word Dictionary comprises a set of T-Words and their corresponding values.
6. The method of claim 2, wherein determining the at least one current value comprises asking at least one interim question to at least one of a question-answer system by searching an internet; by searching a data repository or database; and by searching a Corpus.
7. The method of claim 3, wherein the T-word Dictionary comprises the use of a text list; a key-value pair; an XML; or a table in a data repository
8. The method of claim 1, wherein performing natural language processing (NLP) analysis on the input question comprises at least one of performing part-of-speech (POS) tagging; performing parsing or syntactic analysis; performing phrase chunking; performing named entity recognition (NER); and determining a typed dependency.
9. A computer system for providing an answer to an input question containing at least one time-sensitive word or at least one time-sensitive phrase using natural language processing (NLP), the computer system comprising:
one or more processors, one or more computer-readable memories, one or more computer-readable tangible storage devices, and program instructions stored on at least one of the one or more storage devices for execution by at least one of the one or more processors via at least one of the one or more memories, wherein the computer system is capable of performing a method comprising:
receiving the input question;
performing natural language processing (NLP) analysis on the input question to extract a required value phrase;
forming at least one mathematical equation based on the extracted required value phrase;
forming at least one interim question based on the extracted required value phrase;
solving the at least one formed mathematical equation and the at least one formed interim question; and
narrating the answer to the input question in natural language based on the solved at least one interim question or the solved at least one mathematical equation.
10. The computer system of claim 9, further comprising:
determining at least one relevant variable based on the extracted required value phrase; and
determining at least one current value for the at least one determined relevant variable.
11. The computer system of claim 9, wherein identifying the at least one time-sensitive word or the at least one time-sensitive phrase comprises the use of a T-Word Dictionary.
12. The computer system of claim 9, wherein an output from the natural language processing (NLP) is stored in a temporary repository or held in memory.
13. The computer system of claim 11, wherein the T-Word Dictionary comprises a set of T-Words and their corresponding values.
14. The computer system of claim 10, wherein determining the at least one current value comprises asking at least one interim question to at least one of a question-answer system by searching an internet; by searching a data repository or database; and by searching a Corpus.
15. The computer system of claim 12, wherein the T-word Dictionary comprises the use of a text list; a key-value pair; an XML; or a table in a data repository
16. The computer system of claim 9, wherein performing natural language processing (NLP) analysis on the input question comprises at least one of performing part-of-speech (POS) tagging; performing parsing or syntactic analysis; performing phrase chunking; performing named entity recognition (NER); and determining a typed dependency.
17. A computer program product providing an answer to a question containing at least one time-sensitive word or at least one time-sensitive phrase using natural language processing (NLP), the computer program product comprising:
one or more computer-readable storage devices and program instructions stored on at least one of the one or more tangible storage devices, the program instructions executable by a processor, the program instructions comprising:
program instructions to receive the input question;
program instructions to identify the at least one time-sensitive word or the at least one time-sensitive phrase contained in the input statement;
program instructions to receive the input question;
program instructions to perform natural language processing (NLP) analysis on the input question to extract a required value phrase;
program instructions to form at least one mathematical equation based on the extracted required value phrase;
program instructions to form at least one interim question based on the extracted required value phrase;
program instructions to solve the at least one formed mathematical equation and the at least one formed interim question; and
program instructions to narrate the answer to the input question in natural language based on the solved at least one interim question or the solved at least one mathematical equation.
18. The computer program product of claim 17 further comprising:
determining at least one relevant variable based on the extracted required value phrase; and
determining at least one current value for the at least one determined relevant variable.
19. The computer program product of claim 17, wherein identifying the at least one time-sensitive word or the at least one time-sensitive phrase comprises the use of a T-Word Dictionary.
20. The computer program product of claim 1, wherein an output from the natural language processing (NLP) is stored in a temporary repository or held in memory.
The claims below are in addition to those above.
All refrences to claim(s) which appear below refer to the numbering after this setence.
1. A method for mapping Ethernet code blocks to an optical transport network (OTN) for transmission, comprising:
uniformly mapping four groups of 10 Gigabit (10G) Ethernet code blocks to a payload area of a general frame provision (GFP) frame according to a preset mapping manner, and setting a first corresponding identifier to identify the preset mapping manner; and
wherein the uniformly mapping the four groups of 10G Ethernet code blocks to the payload area of the GFP frame comprises: multiplexing and encoding four groups of 10G Ethernet signals using a (64*N)B(64*N+1)B encoding scheme to obtain the four groups of 10G Ethernet code blocks, and mapping each group of the obtained 10G Ethernet code blocks to the payload area of each row of the GFP frame, wherein each group of 10G Ethernet code blocks has an encoding rate smaller than a minimum payload bandwidth of an Optical Channel Payload Unit-3 (OPU3), and the minimum payload bandwidth of the OPU3 is 40.149716311 GBitss;
wherein the setting the first corresponding identifier to identify the preset mapping manner comprises: setting a core header of the GFP frame to identify the payload area and setting a payload type of the payload area, and setting a header user payload identifier (UPI) in the payload type, to identify the mapping manner; and
mapping the GFP frame to the OTN, and sending out the GFP frame.
2. The method according to claim 1, further comprising:
performing justification control on the GFP frame by using an idle block if it is found that data in the payload area of the GFP frame is not enough when the GFP frame is being sent, wherein the performing the justification control on the GFP frame by using the idle blocks comprises at least one step of the group consisting of:
inserting idle blocks containing no data into the GFP frame, inserting an idle block containing no data into each group of the 10G Ethernet code blocks in the GFP frame, and using corresponding identifiers to indicate that the idle blocks are adapted for justification control; and
inserting an idle block containing no data into each group of the 10G Ethernet code blocks in the GFP frame, and using a second corresponding identifier to indicate that the idle block is adapted for justification control.
3. The method according to claim 1, further comprising:
decoding the received general frame provision (GFP) frame to obtain the identifier for identifying the mapping manner, and obtaining the mapping manner for uniformly mapping the four groups of 10 Gigabit (10G) Ethernet code blocks to the payload area of the GFP frame according to a value of the identifier; and
decoding the four groups of 10G Ethernet code blocks in the GFP frame according to the mapping manner.
4. The method according to claim 3, further comprising:
deleting a corresponding idle block for justification control after the corresponding idle block is found in the decoding process.
5. A sending device, comprising:
a mapping unit, configured to uniformly map four groups of 10 Gigabit (10G) Ethernet code blocks to a payload area of a general frame provision (GFP) frame according to a preset mapping manner, and set a corresponding identifier to identify the preset mapping manner, wherein the uniformly mapping the four groups of 10G Ethernet code blocks to the payload area of the GFP frame comprises: multiplexing and encoding four groups of 10G Ethernet signals using a (64*N)B(64*N+1)B encoding scheme to obtain the four groups of 10G Ethernet code blocks, and mapping each group of the obtained 10G Ethernet code blocks to the payload area of each row of the GFP frame, wherein each group of 10G Ethernet code blocks has an encoding rate smaller than a minimum payload bandwidth of an Optical Channel Payload Unit-3 (OPU3), and the minimum payload bandwidth of the OPU3 is 40.149716311 GBitss; wherein the setting a corresponding identifier to identify the preset mapping manner comprises: setting a core header of the GFP frame to identify the payload area and set a payload type of the payload area, and setting a header user payload identifier (UPI) in the payload type, to identify the mapping manner; and
a transmission unit, configured to map the GFP frame to an optical transport network (OTN), and send the GFP frame.
6. The device according to claim 5, further comprising:
a justification unit, configured to perform justification control on the GFP frame by using idle blocks if it is found that data in the payload area of the GFP frame is not enough when the GFP frame is being sent.
7. A receiving device, comprising:
an information acquisition unit, configured to decode a received general frame provision (GFP) frame to obtain an identifier for identifying a mapping manner, and obtain the mapping manner for uniformly mapping four groups of 10 Gigabit (10G) Ethernet code blocks to a payload area of the GFP frame according to a value of the identifier, wherein the uniformly mapping the four groups of the 10G Ethernet code blocks to the payload area of the GFP frame comprises: multiplexing and encoding four groups of 10G Ethernet signals using a (64*N)B(64*N+1)B encoding scheme to obtain the four groups of 10G Ethernet code blocks, and mapping each group of the obtained 10G Ethernet code blocks to the payload area of each row of the GFP frame, wherein each of the group of 10G Ethernet code blocks has an encoding rate smaller than a minimum payload bandwidth of an Optical Channel Payload Unit-3 (OPU3), and the minimum payload bandwidth of the OPU3 is 40.149716311 GBitss; and
a decoding unit, configured to decode the four groups of 10G Ethernet code blocks in the GFP frame according to the mapping manner.
8. The device according to claim 7, wherein the decoding unit is further configured to delete a corresponding idle block for justification control after the corresponding idle block is found in the decoding process.