Intelligent scheduling method and system based on natural language analysis

Through the combination of syntactic and semantic analysis models, automatic sentence segmentation and analysis of instruction statements and user feedback, the automation of the intelligent scheduling system is realized, which solves the problem of low automation of the existing scheduling system and improves the intelligence level of the system.

CN114239592BActive Publication Date: 2024-10-22北京国瑞数智技术有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111460198.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-02
Publication Date
2024-10-22
Estimated Expiration
2041-12-02

AI Technical Summary

Technical Problem

The existing dispatching system has a low degree of automation, cannot automatically understand the meaning of language and issue dispatching instructions, and cannot meet the needs of future intelligent dispatching systems.

Method used

By inputting the instruction statement into the syntax model for segmentation, the word components are obtained, and the semantic analysis model is input one by one to query the instruction sequence to realize the automatic execution of the function module; the feedback message input by the user is also segmented and analyzed to obtain the meaning of the statement.

Benefits of technology

An automated dispatching system has been realized, which can automatically understand the meaning of language and issue dispatching instructions, improving the intelligence level of the system and meeting the needs of future dispatching systems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114239592B_ABST
    Figure CN114239592B_ABST
Patent Text Reader

Abstract

The present invention provides an intelligent scheduling method and system based on natural language analysis, which inputs an instruction statement into a syntactic model, performs preliminary sentence segmentation to obtain a first word component, inputs the first word component into a semantic analysis model one by one to obtain a second word component, queries the second word component to obtain an instruction sequence, so that each function execution module executes a function according to the instruction, and at the same time, for a feedback message statement input by a user, similarly performs sentence segmentation to obtain word components, queries the word components again to obtain an indication sequence, thereby obtaining the meaning of the user input statement.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of network multimedia, and in particular to an intelligent scheduling method and system based on natural language analysis. Background Art

[0002] The existing dispatching system is highly dependent on manual command and control, with a relatively low degree of automation. It can only achieve automation in links with low intelligence and high repetition rate, and cannot meet the needs of future dispatching systems. An intelligent system that can automatically understand the meaning of language, automatically issue dispatching instructions and analyze feedback is needed.

[0003] Therefore, there is an urgent need for a targeted intelligent scheduling method and system based on natural language analysis. Summary of the invention

[0004] The purpose of the present invention is to provide a method and system for intelligent scheduling based on natural language analysis, by inputting an instruction statement into a syntactic model, performing preliminary sentence segmentation to obtain a first word component, inputting the first word component one by one into a semantic analysis model to obtain a second word component, querying the second word component to obtain an instruction sequence, so that each function execution module executes the function according to the instruction, and at the same time, for the feedback message statement input by the user, sentence segmentation is also performed to obtain word components, and the word components are queried again to obtain an indication sequence, thereby obtaining the meaning of the user input statement.

[0005] In a first aspect, the present application provides an intelligent scheduling method based on natural language analysis, the method comprising:

[0006] Obtaining a network data stream, and extracting the carried instruction statements and additional element information therefrom, wherein the additional element information refers to an identifier used to distinguish different statements and different sources;

[0007] Input the instruction sentence into the syntactic model, perform preliminary sentence segmentation, and obtain the first word component, wherein the syntactic model sets extraction windows of different widths according to each word type, and uses the extraction window as the sentence segmentation basis, and the words within the window width constitute the first word component;

[0008] Input the first word component into the semantic analysis model one by one. If the first word component can still be identified as a short sentence, it is determined that the initial segmentation of the first word component is unsuccessful, and the first word component needs to be input into the syntactic model again to be segmented again to obtain a second word component. If the first word component cannot be identified as a short sentence but is identified as a phrase, it is determined that the initial segmentation of the first word component is successful, and the first word component is directly identified as the second word component. The phrase consists of a plurality of words and has no syntactic structure.

[0009] Repeating inputting the second word components into the semantic analysis model one by one until each second word component is determined to be preliminarily segmented successfully;

[0010] Obtaining an instruction sequence according to the query of the second word component, the instruction sequence includes a plurality of instruction codes, transmitting the instruction codes one by one to a corresponding function execution module, the function execution module completing a corresponding function according to the instruction of the instruction code and returning a response;

[0011] Wherein, the response includes a message code input by the user;

[0012] Extract the message code input by the user, separate the message sentence from it, input the message sentence into the syntactic model for sentence segmentation to obtain the third word component, input the third word component into the semantic analysis model one by one, perform sentence segmentation again to obtain the fourth word component;

[0013] An indication sequence is obtained according to the fourth word component query, and the indication sequence is reorganized to obtain the meaning of a new sentence, thereby obtaining the meaning input by the user.

[0014] In combination with the first aspect, in a first possible implementation of the first aspect, setting extraction windows of different widths according to each word type includes updating the type of the word and establishing a corresponding relationship between the new word type and the extraction window width.

[0015] In combination with the first aspect, in a second possible implementation of the first aspect, the semantic analysis model performs semantic analysis according to sentence grammatical requirements.

[0016] In combination with the first aspect, in a third possible implementation of the first aspect, the kernels of the semantic analysis model and the syntactic model both use a neural network model.

[0017] In a second aspect, the present application provides a system for intelligent scheduling based on natural language analysis, the system comprising a processor and a memory:

[0018] The memory is used to store program code and transmit the program code to the processor;

[0019] The processor is used to execute any one of the four possible methods of the first aspect according to the instructions in the program code.

[0020] In a third aspect, the present application provides a computer-readable storage medium, wherein the computer-readable storage medium is used to store program code, and the program code is used to execute any one of the four possible methods in the first aspect.

[0021] The present invention provides a method and system for intelligent scheduling based on natural language analysis, which inputs an instruction statement into a syntactic model, performs preliminary sentence segmentation to obtain a first word component, inputs the first word component into a semantic analysis model one by one to obtain a second word component, queries the second word component to obtain an instruction sequence, so that each function execution module executes a function according to the instruction, and at the same time, for a feedback message statement input by a user, similarly performs sentence segmentation to obtain word components, queries the word components again to obtain an indication sequence, thereby obtaining the meaning of the user input statement. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the embodiments are briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0023] Figure 1 Flow chart of the method of the present invention. DETAILED DESCRIPTION

[0024] The preferred embodiments of the present invention are described in detail below in conjunction with the accompanying drawings so that the advantages and features of the present invention can be more easily understood by those skilled in the art, thereby making a clearer and more definite definition of the protection scope of the present invention.

[0025] Figure 1 The flowchart of the method for intelligent scheduling based on natural language analysis provided in this application includes:

[0026] Obtaining a network data stream, and extracting the carried instruction statements and additional element information therefrom, wherein the additional element information refers to an identifier used to distinguish different statements and different sources;

[0027] Input the instruction sentence into the syntactic model, perform preliminary sentence segmentation, and obtain the first word component, wherein the syntactic model sets extraction windows of different widths according to each word type, and uses the extraction window as the sentence segmentation basis, and the words within the window width constitute the first word component;

[0028] Input the first word component into the semantic analysis model one by one. If the first word component can still be identified as a short sentence, it is determined that the initial segmentation of the first word component is unsuccessful, and the first word component needs to be input into the syntactic model again to be segmented again to obtain a second word component. If the first word component cannot be identified as a short sentence but is identified as a phrase, it is determined that the initial segmentation of the first word component is successful, and the first word component is directly identified as the second word component. The phrase consists of a plurality of words and has no syntactic structure.

[0029] Repeating inputting the second word components into the semantic analysis model one by one until each second word component is determined to be preliminarily segmented successfully;

[0030] Obtaining an instruction sequence according to the query of the second word component, the instruction sequence includes a plurality of instruction codes, transmitting the instruction codes one by one to a corresponding function execution module, the function execution module completing a corresponding function according to the instruction of the instruction code and returning a response;

[0031] Wherein, the response includes a message code input by the user;

[0032] Extract the message code input by the user, separate the message sentence from it, input the message sentence into the syntactic model for sentence segmentation to obtain the third word component, input the third word component into the semantic analysis model one by one, perform sentence segmentation again to obtain the fourth word component;

[0033] An indication sequence is obtained according to the fourth word component query, and the indication sequence is reorganized to obtain the meaning of a new sentence, thereby obtaining the meaning input by the user.

[0034] In some preferred embodiments, setting extraction windows of different widths according to each word type includes updating the word type and establishing a corresponding relationship between the new word type and the extraction window width.

[0035] In some preferred embodiments, the semantic analysis model performs semantic analysis according to sentence grammatical requirements.

[0036] In some preferred embodiments, the kernels of the semantic analysis model and the syntactic model both use neural network models.

[0037] The present application provides a system for intelligent scheduling based on natural language analysis, the system comprising: the system comprising a processor and a memory:

[0038] The memory is used to store program code and transmit the program code to the processor;

[0039] The processor is used to execute the method described in any one of all embodiments of the first aspect according to the instructions in the program code.

[0040] The present application provides a computer-readable storage medium, wherein the computer-readable storage medium is used to store program code, and the program code is used to execute the method described in any one of the embodiments of the first aspect.

[0041] In a specific implementation, the present invention further provides a computer storage medium, wherein the computer storage medium may store a program, and when the program is executed, the program may include some or all of the steps in each embodiment of the present invention. The storage medium may be a disk, an optical disk, a read-only storage memory (abbreviated as: ROM) or a random access memory (abbreviated as: RAM), etc.

[0042] Those skilled in the art can clearly understand that the technology in the embodiments of the present invention can be implemented by means of software plus a necessary general hardware platform. Based on this understanding, the technical solution in the embodiments of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which can be stored in a storage medium such as ROM / RAM, a disk, an optical disk, etc., and includes several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present invention or some parts of the embodiments.

[0043] The same and similar parts between the various embodiments of this specification can be referred to each other. In particular, for the embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the description in the method embodiment.

[0044] The above-described embodiments of the present invention do not limit the protection scope of the present invention.

Claims

1. An intelligent scheduling method based on natural language analysis, characterized in that: The method comprises: Obtaining a network data stream, and extracting the carried instruction statements and additional element information therefrom, wherein the additional element information refers to an identifier used to distinguish different statements and different sources; Input the instruction sentence into the syntactic model, perform preliminary sentence segmentation, and obtain the first word component, wherein the syntactic model sets extraction windows of different widths according to each word type, and uses the extraction window as the sentence segmentation basis, and the words within the window width constitute the first word component; Input the first word component into the semantic analysis model one by one. If the first word component can still be identified as a short sentence, it is determined that the initial segmentation of the first word component is unsuccessful, and the first word component needs to be input into the syntactic model again to be segmented again to obtain a second word component. If the first word component cannot be identified as a short sentence but is identified as a phrase, it is determined that the initial segmentation of the first word component is successful, and the first word component is directly identified as the second word component. The phrase consists of a plurality of words and has no syntactic structure. Repeating inputting the second word components into the semantic analysis model one by one until each second word component is determined to be preliminarily segmented successfully; Obtaining an instruction sequence according to the query of the second word component, the instruction sequence includes a plurality of instruction codes, transmitting the instruction codes one by one to a corresponding function execution module, the function execution module completing a corresponding function according to the instruction of the instruction code and returning a response; Wherein, the response includes a message code input by the user; Extract the message code input by the user, separate the message sentence from it, input the message sentence into the syntactic model for sentence segmentation to obtain the third word component, input the third word component into the semantic analysis model one by one, perform sentence segmentation again to obtain the fourth word component; An indication sequence is obtained according to the fourth word component query, and the indication sequence is reorganized to obtain the meaning of a new sentence, thereby obtaining the meaning input by the user.

2. The method according to claim 1, characterized in that: The method of setting extraction windows of different widths according to each word type includes updating the word type and establishing a corresponding relationship between the new word type and the extraction window width.

3. The method according to any one of claims 1-2, characterized in that: The semantic analysis model performs semantic analysis according to sentence grammatical requirements.

4. The method according to any one of claims 1 to 3, characterized in that: The kernels of the semantic analysis model and the syntactic model both use neural network models.

5. An intelligent scheduling system based on natural language analysis, characterized in that: The system comprises a processor and a memory: The memory is used to store program code and transmit the program code to the processor; The processor is used to execute the method according to any one of claims 1 to 4 according to the instructions in the program code.

6. A computer-readable storage medium, characterized in that: The computer-readable storage medium is used to store program codes, and the program codes are used to execute the method according to any one of claims 1 to 4.