The invention discloses a report chart automatic generation method based on
natural language analysis and
data query, which comprises the following steps: acquiring a
natural language text, and constructing a slot set and an initial semantic fragment; executing consistency
verification and
ambiguity identification, and constructing a
semantic framework; executing field
standardization and mode alignment, generating a
data query statement and establishing a
traceability chain identifier; querying a
target database to obtain an
original data set, completing
data quality self-correction, and generating a cleaned
data set; calling an improved Mamba model to construct a constraint judgment matrix and outputting a target chart subset; generating a chart description grammar and an image
annotation template, and executing image rendering, feature point recognition and image sidebar construction; and performing
layout optimization and double compilation, and outputting a structured report file. According to the method, the chart generation
automation level and the report compiling efficiency are improved, and the accuracy,
traceability and
specialty of the output content are ensured.