Patent ID: 11928156
Assignee: INTERNATIONAL BUSINESS MACHINES CORPORATION
Field: Computer technology (Electrical engineering)
Classification: CPC G | IPC G

Claim 9:
10. An apparatus comprising:
a memory;
a non-transitory computer readable medium including computer executable instructions; and
at least one processor, coupled to the memory and the non-transitory computer readable medium, and operative to execute the instructions to be operative to:
instantiate a classification module and an annotation generation module;
obtain a segment of computer code;
with said classification module, determine a stage from a predefined set of stages of a predefined data science workflow to which said segment of computer code corresponds and determine a required annotation category from a predefined set of categories for said segment of computer code based on said stage of said data science workflow;
with said annotation generation module, generate a natural language annotation of said segment of computer code based on said segment of computer code and said required annotation category;
generate an Abstract Syntax Tree (AST) structure of at least said segment of computer code, wherein said natural language annotation of said segment of computer code is further based on said Abstract Syntax Tree (AST) structure, wherein said annotation generation module includes a graph neural network; and
provide said natural language annotation to a user interface for display adjacent said segment of computer code.