The application provides a method and device for determining
time information based on
natural language, and relates to the technical field of
intelligent control. The method comprises the following steps: obtaining
natural language information and a current reference time; extracting time hierarchy information included in the
natural language information based on the reference time according to a preset semantic template through a preconfigured large
language model, and generating time structured data for expressing a time intention of the natural language information according to the time hierarchy information; and
parsing the time structured data in an execution layer to determine a
standard time object contained in the natural language information. The method and device for determining
time information based on natural language provided by the application can avoid the phenomenon that the large
language model outputs an incorrect date due to a numerical error and illusion in date calculation, thereby improving the accuracy of time calculation and effectively meeting the rigorous requirements of the
intelligent control field for time calculation.