Automatic programming method and system for natural language machine thinking
A natural language and automatic programming technology, applied in intelligent editors, other database retrieval, network data indexing, etc., can solve the problem of no major technological breakthroughs, and achieve the effect of great commercial value
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
example 1
[0400] Natural Language Task Representation Text: Tasks come from outside. Transform the task statement in natural language into a predicate calculus-like formal clause set, and select key clauses to form the main clause set. Equivalent to training examples in machine learning.
[0401] Task explanation: Decompose the task expressed in natural language, and divide and classify it from the whole, branch and detail. It is equivalent to recognition and reasoning under domain theory in machine learning.
[0402] #include / * has directives:
[0403] Preprocess X for include input
[0404] =﹙for include, input, preprocessing X﹚
[0405] =﹙input, right, include﹚﹙﹙…,input, X﹚
[0406] IF input, THEN (right, include)
[0407] IF input, THEN pair
[0408] IF pairs, THENinclude
[0409] IF input, THENX
[0410] For example, X=math, then we have
[0411] IF preprocessing X, THENmath
[0412] Agent Behavior: Enter this instruction in the programming software. * /
[0413] #inclu...
example 2
[0423] intmax(inta, intb); / *﹙..., definition, function﹚:﹙..., press, enter key﹚∧﹙..., in, next line﹚∧﹙..., definition, function Qjmax(inta, intb)|[ Q])→﹙…, type, type specifier ∧ variable type max(inta, intb)﹚. * /
[0424] main() / *﹙…, press, Enter key﹚∧﹙…, on, next line ﹚∧﹙…, type, main(Y)﹚* /
[0425] { / *﹙…, press, Enter key﹚∧﹙…, on, next line ﹚∧﹙…, type, {﹚* /
[0426] intx1, x2, Q1; / *﹙..., definition, variable), to be used by subsequent programs: ﹙..., press, enter key﹚∧﹙..., in, next line﹚∧﹙﹙..., definition, variable xj|[ x]) → (..., type, type specifier int ∧ x1, x2, Q1) * /
[0427] intmax(inta, intb); / *﹙..., definition, function﹚:﹙..., press, enter key﹚∧﹙..., in, next line﹚∧﹙..., definition, function Qj|〔Q〕﹚→﹙ ..., type, type specifier ∧Qj). Q1 = max(inta, intb). * /
[0428] printf("inputtwonumbers:\n");
[0429] scanf("%d%d", &x1, &x2); / *Type the variables x1, x2 in two [x]: ﹙..., press, enter key﹚∧﹙..., in, next line ﹚∧﹙... , input, format input function sca...
example 3
[0438] Input and output of character array / * (character array, HAS, input ∨ output) * /
[0439] main() / *﹙…, press, Enter key﹚∧﹙…, on, next line ﹚∧﹙…, type, main(Y)﹚* /
[0440] { / *﹙…, press, Enter key﹚∧﹙…, on, next line ﹚∧﹙…, type, {﹚* /
[0441]char love[]="BASIC\ndBASE"; / *Initialize assignment array named love string: ﹙..., press, enter key﹚∧﹙..., in, next line ﹚∧﹙..., assign, love[] |〔word〕﹚→﹙..., type, type specifier ∧love[]="BASIC\ndBASE"﹚. * /
[0442] printf("%s\n", love); / *Output: ﹙..., press, enter key﹚∧﹙..., in, next line ﹚∧﹙..., type, printf("function format control string %s\ n", function love))* /
[0443]} / *﹙…, press, enter key﹚∧﹙…, on, next line ﹚∧﹙…, type, {﹚* /
[0444] Note: In the printf function in this example, the format string used is "%s", which means that the output is a string. However, the array name can be given in the output table column, and it cannot be written as:
[0445] printf("%s", love[]);
[0446] When using the scanf function to inp...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com