A Natural Language Processing (NLP) based method and system to convert natural language sentences into lambda expressions is provided. The method includes entering a plurality of sentences described in natural language, tokenizing each word in the plurality of sentences, categorizing the words into parts of speech (POS), parsing the tokenized word with parts of speech (POS), recognizing entity in the words in said each word in said plurality of sentences, combining recognized entity with POS to obtain words, which are represented as nodes, generating a graphical representation of the nodes using a directed acyclic graph (DAG) and converting the DAG into a partial lambda expressions.
展开▼