US 11,842,290 B2
Using functions to annotate a syntax tree with real data used to generate an answer to a question
Oleg Sidorkin, Foster City, CA (US); and Sergey Batin, Foster City, CA (US)
Assigned to INTERNATIONAL BUSINESS MACHINES CORPORATION, Armonk, NY (US)
Filed by International Business Machines Corporation, Armonk, NY (US)
Filed on May 19, 2022, as Appl. No. 17/664,220.
Application 17/664,220 is a continuation of application No. 16/575,341, filed on Sep. 18, 2019, granted, now 11,379,738.
Prior Publication US 2022/0284326 A1, Sep. 8, 2022
Int. Cl. G06N 5/04 (2023.01); G06N 3/084 (2023.01)
CPC G06N 5/04 (2013.01) [G06N 3/084 (2013.01)] 20 Claims
OG exemplary drawing
 
1. A computer program product for processing language statements in a computing system, wherein the computer program product comprises a computer readable storage medium having computer readable program instructions executed by a processor to perform operations, the operations comprising:
generating a syntax tree with tokens from a question to process;
producing an annotated syntax tree with concepts for the tokens, wherein the concepts are in a domain of the question;
determining whether there is an element in the annotated syntax tree matching input of a function, wherein the function has code to generate real data from input of the function corresponding to the concepts in the annotated syntax tree;
executing the code for the function to produce the real data for the element in response to determining the element in the annotated syntax tree matching the input of the function; and
annotating the syntax tree with the real data for the determined element in the syntax tree to use to provide an answer to the question.