主权项 |
1. A computer-implemented method comprising:
receiving data, from a user device by a code generation server, wherein the received data comprises text of a natural language problem, and corresponding source code; generating, by a natural language engine, parsed natural language using the data by identifying and parsing the natural language problem to generate metadata tags that identify types of speech of the parsed natural language; generating, by a source code engine, parsed source code using the data by parsing and analyzing the corresponding source code to generate first metadata to identify different types of software constructs associated with the parsed source code; generating, by the natural language engine, second metadata that identifies the parsed source code into the types of speech of the parsed natural language by analyzing the corresponding source code; generating, by a data management engine, mappings between the parsed natural language and the parsed source code based on the metadata tags and the first and second metadata; ranking, by the data management engine, the mappings based on a reputation value associated with at least one of an electronic textbook, an electronic textbook entry, or an author associated with the electronic textbook; and transmitting, by the data management engine, the mappings between the parsed natural language and the parsed source code to a datastore, wherein the reputation value indicates a rating by users of the at least one of the electronic textbook, the electronic textbook entry, or the author associated with the electronic textbook. |