摘要 |
Disclosed are a method for translating natural language into computer language, semantic analyzer and human-computer dialogue system, the method comprising: inputting a natural language into a computer; the computer extracts and translates a grammar component, a logical conjunction and a logical semantic into a character string code, an instruction code and a binary system code respectively, and concatenates the codes into a computer-recognizable program language. The above solution can technically process each grammar component according to the mapping and concatenation method of a computer program, so as to translate a natural language into a computer-recognizable program language, thus enabling a computer to understand the natural language, and realizing human-computer dialogue and conversation. |