A method, device, electronic device and medium for extracting task instruction sequence

By training the task instruction extraction model, using historical task text data and the attention mechanism, the task instruction sequence in the airport is automatically extracted, which solves the problems of low manual extraction efficiency and low accuracy, and improves the extraction efficiency and accuracy of task instructions.

CN118536786BActive Publication Date: 2024-09-20CIVIL AVIATION CHENGDU INFORMATION TECH CO LTD
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202411017407.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-29
Publication Date
2024-09-20
Estimated Expiration
2044-07-29

AI Technical Summary

Technical Problem

In airport operations, manual extraction of task instructions is inefficient and error-prone, resulting in low accuracy in extracting task instructions.

Method used

By obtaining the word segmentation vector data of historical task text data and the actual probability matrix of task instructions, the task instruction extraction model is trained, and the encoding unit and decoding unit are combined with the attention weight to generate the task instruction extraction probability matrix, thereby automatically extracting the task instruction sequence.

Benefits of technology

There is no need for workers to manually extract task instructions, which significantly improves the efficiency and accuracy of extracting task instructions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118536786B
    Figure CN118536786B
Patent Text Reader

Abstract

The present invention relates to the field of task instruction extraction, and in particular to a method, device, electronic device and medium for extracting a task instruction sequence, the method comprising: obtaining word segmentation vector data and a task instruction actual probability matrix corresponding to historical task text data in an airport; inputting the word segmentation vector data into a task instruction extraction model to obtain a task instruction extraction probability matrix; the task instruction extraction probability matrix contains a task instruction extraction probability corresponding to at least one word segmentation in the historical task text data; training the task instruction extraction model according to the task instruction extraction probability matrix and the task instruction actual probability matrix; extracting a task instruction sequence through the trained task instruction extraction model. Through the method of the present application, task instructions in task texts can be extracted without the need for staff to manually extract task instructions, thereby improving the efficiency and accuracy of extracting task instructions.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of task instruction extraction, and in particular to a method, device, electronic equipment and medium for extracting a task instruction sequence. Background Art

[0002] Airport operations adopt a zoning management and multi-level scheduling model, and close collaboration between units at all levels is the key to ensuring efficient operations. Due to the independence of production systems used by different positions in different regions, coupled with the unpredictability of temporary events and emergencies, a large number of cross-departmental collaborations are mainly carried out through instant messaging tools to transmit corresponding task message texts. After the staff manually interprets the task message text and extracts the task instructions in the task message text, they manually execute the task instructions in the task message text in the corresponding production system to drive subsequent work processes. The core of this message-driven collaborative process and manually triggered task instructions is that the staff accurately extracts the task instructions in the task message text.

[0003] However, when processing a large number of tasks, the efficiency of manually extracting task instructions is extremely low, and manual extraction of task instructions is prone to errors, resulting in a low accuracy rate of extracting task instructions. Summary of the invention

[0004] In view of this, the purpose of the present application is to provide a method, device, electronic device and medium for extracting a task instruction sequence. The beneficial effect of the present application is that it can extract task instructions in task text without the need for staff to manually extract task instructions, thereby improving the efficiency and accuracy of extracting task instructions.

[0005] In a first aspect, an embodiment of the present application provides a method for extracting a task instruction sequence, the method comprising:

[0006] Obtain the word segmentation vector data and the actual probability matrix of the task instruction corresponding to the historical task text data in the airport; the actual probability matrix of the task instruction contains the actual probability of the task instruction corresponding to at least one word segmentation in the historical task text data; the word segmentation vector data includes the vectors corresponding to all word segmentations in the historical task text data;

[0007] Input the word segmentation vector data into the task instruction extraction model to obtain a task instruction extraction probability matrix; the task instruction extraction probability matrix contains the task instruction extraction probability corresponding to at least one word segmentation in the historical task text data;

[0008] According to the task instruction extraction probability matrix and the task instruction actual probability matrix, the task instruction extraction model is trained;

[0009] The task instruction sequence is extracted through the trained task instruction extraction model.

[0010] In a possible implementation, the actual probability matrix of the task instructions corresponding to the historical task text data is obtained through the following steps:

[0011] Get the historical task instruction text corresponding to the historical task text data;

[0012] Performing text segmentation on the historical task text data and the historical task instruction text respectively to obtain a first segmentation set and a second segmentation set;

[0013] The segmented words in the first segmented word set are screened according to the length of each segmented word, the task entity identifier, and the frequency of occurrence in the historical task text data to obtain a third segmented word set;

[0014] The actual probability of the task instruction corresponding to each word in the second word segmentation set and the third word segmentation set is determined to obtain the actual probability matrix of the task instruction corresponding to the historical task text data.

[0015] In a possible implementation, the task instruction extraction model includes an encoding unit and a decoding unit; the word segmentation vector data is input into the task instruction extraction model to obtain a task instruction extraction probability matrix, including:

[0016] Input the word segmentation vector data into the encoding unit to obtain the hidden state corresponding to each word segmentation vector in the word segmentation vector data; the hidden state corresponding to each word segmentation combines the hidden state corresponding to the previous word segmentation and the hidden state corresponding to the next word segmentation;

[0017] The hidden state corresponding to each word segmentation vector is input into the decoding unit to obtain the task instruction extraction probability matrix; the decoding unit introduces attention weights for the hidden state corresponding to each word segmentation.

[0018] In a possible implementation, the word segmentation vector data is input into the encoding unit to obtain the hidden state corresponding to each word segmentation vector in the word segmentation vector data, including:

[0019] Determine the forward hidden state corresponding to each word segmentation vector according to the hidden state of the previous word segmentation vector corresponding to each word segmentation vector;

[0020] According to the hidden state of the next word segmentation vector corresponding to each word segmentation vector, determine the backward hidden state corresponding to each word segmentation vector;

[0021] The forward hidden state and the backward hidden state are concatenated to obtain the final hidden state corresponding to each word segmentation vector.

[0022] In a possible implementation, the hidden state corresponding to each word segmentation vector is input into the decoding unit to obtain a task instruction extraction probability matrix, including:

[0023] Determine the context vector corresponding to each time step according to the attention weight corresponding to the hidden state of each word segmentation vector at each time step;

[0024] Determine the target hidden state corresponding to each time step according to the context vector corresponding to each time step, the target hidden state corresponding to the previous time step and the word segmentation probability matrix; the word segmentation probability matrix corresponding to each time step includes the task instruction extraction probability corresponding to each word segmentation vector;

[0025] According to the target hidden state corresponding to each time step, determine the word segmentation probability matrix corresponding to each time step;

[0026] According to the word segmentation probability matrix corresponding to each time step, the task instruction extraction probability matrix is ​​determined.

[0027] In a possible implementation, determining the task instruction extraction probability matrix according to the word segmentation probability matrix corresponding to each time step includes:

[0028] The task instruction extraction probability of the word segmentation vector with the largest probability in the word segmentation probability matrix corresponding to each time step is extracted into the task instruction extraction probability matrix.

[0029] In a possible implementation, extracting a task instruction sequence through a trained task instruction extraction model includes:

[0030] Obtain the word segmentation vector data to be extracted corresponding to the task text data to be extracted;

[0031] Input the word segmentation vector data to be extracted into the task instruction extraction model to obtain the target task instruction extraction probability matrix;

[0032] All the word segments corresponding to the target task instruction extraction probability matrix are generated into a task instruction sequence corresponding to the task text data to be extracted.

[0033] In a second aspect, an embodiment of the present application further provides a task instruction sequence extraction device, the device comprising:

[0034] An acquisition module is used to acquire word segmentation vector data and a task instruction actual probability matrix corresponding to the historical task text data in the airport; the task instruction actual probability matrix contains the task instruction actual probability corresponding to at least one word segmentation in the historical task text data; the word segmentation vector data includes vectors corresponding to all word segmentations in the historical task text data;

[0035] An input module, used for inputting the word segmentation vector data into a task instruction extraction model to obtain a task instruction extraction probability matrix; the task instruction extraction probability matrix contains a task instruction extraction probability corresponding to at least one word segmentation in the historical task text data;

[0036] A training module, used for performing model training on the task instruction extraction model according to the task instruction extraction probability matrix and the task instruction actual probability matrix;

[0037] The extraction module is used to extract the task instruction sequence through the trained task instruction extraction model.

[0038] In one possible implementation, an acquisition module is specifically used to acquire historical task instruction text corresponding to historical task text data; perform text segmentation on the historical task text data and the historical task instruction text respectively to obtain a first segmentation set and a second segmentation set; filter the segmentations in the first segmentation set according to the length of each segmentation, the task entity identifier, and the frequency of occurrence in the historical task text data to obtain a third segmentation set; determine the actual probability of task instructions corresponding to each segmentation in the second segmentation set and the third segmentation set to obtain an actual probability matrix of task instructions corresponding to the historical task text data.

[0039] In one possible implementation, the task instruction extraction model includes an encoding unit and a decoding unit; an input module is specifically used to input word segmentation vector data into the encoding unit to obtain a hidden state corresponding to each word segmentation vector in the word segmentation vector data; the hidden state corresponding to each word segmentation combines the hidden state of each word segmentation corresponding to the previous word segmentation and the hidden state of each word segmentation corresponding to the next word segmentation; the hidden state corresponding to each word segmentation vector is input into the decoding unit to obtain a task instruction extraction probability matrix; the decoding unit introduces attention weights for the hidden states corresponding to each word segmentation.

[0040] In a possible implementation, the input module is further used for:

[0041] Determine the forward hidden state corresponding to each word segmentation vector according to the hidden state of the previous word segmentation vector corresponding to each word segmentation vector;

[0042] According to the hidden state of the next word segmentation vector corresponding to each word segmentation vector, determine the backward hidden state corresponding to each word segmentation vector;

[0043] The forward hidden state and the backward hidden state are concatenated to obtain the final hidden state corresponding to each word segmentation vector.

[0044] In a possible implementation, the input module is further used for:

[0045] Determine the context vector corresponding to each time step according to the attention weight corresponding to the hidden state of each word segmentation vector at each time step;

[0046] Determine the target hidden state corresponding to each time step according to the context vector corresponding to each time step, the target hidden state corresponding to the previous time step and the word segmentation probability matrix; the word segmentation probability matrix corresponding to each time step includes the task instruction extraction probability corresponding to each word segmentation vector;

[0047] According to the target hidden state corresponding to each time step, determine the word segmentation probability matrix corresponding to each time step;

[0048] According to the word segmentation probability matrix corresponding to each time step, the task instruction extraction probability matrix is ​​determined.

[0049] In a possible implementation, the input module is further used for:

[0050] The task instruction extraction probability of the word segmentation vector with the largest probability in the word segmentation probability matrix corresponding to each time step is extracted into the task instruction extraction probability matrix.

[0051] In one possible implementation, the extraction module is specifically used to obtain the word segmentation vector data to be extracted corresponding to the task text data to be extracted; input the word segmentation vector data to be extracted into the task instruction extraction model to obtain the target task instruction extraction probability matrix; all the word segments corresponding to the target task instruction extraction probability matrix are generated as a task instruction sequence corresponding to the task text data to be extracted.

[0052] In the third aspect, an embodiment of the present application also provides an electronic device, comprising: a processor, a storage medium and a bus, the storage medium storing machine-readable instructions executable by the processor, when the electronic device is running, the processor and the storage medium communicate through the bus, and the processor executes the machine-readable instructions to perform the steps of the task instruction sequence extraction method as described in any one of the first aspects.

[0053] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the method for extracting a task instruction sequence as described in any one of the first aspects are executed.

[0054] The embodiment of the present application provides a method, device, electronic device and medium for extracting a task instruction sequence, the method comprising: obtaining word segmentation vector data and a task instruction actual probability matrix corresponding to historical task text data in an airport; the task instruction actual probability matrix includes the task instruction actual probability corresponding to at least one word segmentation in the historical task text data; the word segmentation vector data includes vectors corresponding to all word segmentations in the historical task text data; the word segmentation vector data is input into a task instruction extraction model to obtain a task instruction extraction probability matrix; the task instruction extraction probability matrix includes the task instruction extraction probability corresponding to at least one word segmentation in the historical task text data; the task instruction extraction model is trained according to the task instruction extraction probability matrix and the task instruction actual probability matrix; and the task instruction sequence is extracted through the trained task instruction extraction model. The present application extracts task instructions from task texts through a task instruction extraction model, without the need for staff to manually extract task instructions, thereby improving the efficiency and accuracy of extracting task instructions. BRIEF DESCRIPTION OF THE DRAWINGS

[0055] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0056] Figure 1 A flowchart of a method for extracting a task instruction sequence provided by an embodiment of the present application is shown;

[0057] Figure 2 A flowchart showing another method for extracting a task instruction sequence provided by an embodiment of the present application is shown;

[0058] Figure 3 A schematic diagram of the structure of a task instruction sequence extraction device provided in an embodiment of the present application is shown;

[0059] Figure 4 A schematic structural diagram of an electronic device provided in an embodiment of the present application is shown. DETAILED DESCRIPTION

[0060] To make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. It should be understood that the drawings in the present application only serve the purpose of explanation and description and are not used to limit the scope of protection of the present application. In addition, it should be understood that the schematic drawings are not drawn in real proportion. The flowchart used in this application shows the operations implemented according to some embodiments of the present application. It should be understood that the operations of the flowchart can be implemented out of sequence, and the steps without logical context can be reversed in order or implemented simultaneously. In addition, those skilled in the art can add one or more other operations to the flowchart under the guidance of the content of the present application, or remove one or more operations from the flowchart.

[0061] In addition, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. The components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present application.

[0062] In order to enable those skilled in the art to use the content of this application, the following implementation is provided in conjunction with the specific application scenario "task instruction extraction field". For those skilled in the art, the general principles defined herein can be applied to other embodiments and application scenarios without departing from the spirit and scope of this application. Although this application is mainly described around the "task instruction extraction field", it should be understood that this is only an exemplary embodiment.

[0063] It should be noted that the term "comprising" will be used in the embodiments of the present application to indicate the existence of the features declared thereafter, but does not exclude the addition of other features.

[0064] An information processing method provided in an embodiment of the present application is described in detail below.

[0065] Reference Figure 1 As shown, it is a flowchart of a method for extracting a task instruction sequence provided in an embodiment of the present application. The exemplary steps of the embodiment of the present application are described below:

[0066] S101. Obtain the word segmentation vector data and the actual probability matrix of the task instructions corresponding to the historical task text data in the airport.

[0067] In the embodiments of the present application, the airport contains multiple initial historical task text data; data cleaning is performed on each historical task text data to obtain the final historical task text data; the corresponding word segmentation vector data and the actual task instruction probability matrix of each historical task text data (referring to the final historical task text data obtained after cleaning) are obtained.

[0068] Among them, the initial historical task text data refers to the original task message text sent by airport staff through an instant messaging tool during collaboration; the actual task instruction probability matrix contains the actual task instruction probabilities corresponding to at least one word segmentation in the historical task text data; the actual task instruction probability of a word segmentation refers to the probability that the word segmentation is a task instruction; the word segmentation vector data includes the vectors corresponding to all word segmentations in the historical task text data.

[0069] Example, the original task message text is "Please ask the staff responsible for parking position allocation to allocate a parking position for flight XXX." The initial historical task text data is then "Please ask the XXX staff responsible for parking position allocation to allocate a parking position for flight XXX." The final historical task text data obtained after cleaning can be "XXX staff allocate a parking position for flight XXX".

[0070] Further, during data cleaning, irrelevant characters (such as punctuation marks) in each historical task text data are removed; the LanguageTool library in Python is used to correct spelling mistakes and grammar mistakes in the historical task text data after removal; stop words (stop words in the open-source stop word list, such as "de", "de", "ge", etc.) in the corrected historical task text data are deleted.

[0071] Here, the purpose of data cleaning is to improve the quality of text data and reduce the impact of noise on subsequent processing. Since the text may contain both Chinese and English, different methods need to be used to ensure that the cleaning steps adapt to the characteristics of both languages.

[0072] Further, the actual task instruction probability matrix corresponding to the historical task text data is obtained through the following steps:

[0073] Step 1: Obtain the historical task instruction text corresponding to each historical task text data.

[0074] In the embodiments of the present application, the airport also contains historical task instructions corresponding to each historical task text data; the historical task instruction text refers to the task instruction executed by the staff based on the original task message text corresponding to the historical task text data.

[0075] For example, the original task message text corresponding to the historical task text data "XXX staff allocate XXX parking spaces for XXX flight" is "Please ask the staff responsible for parking space allocation to allocate XXX parking spaces for XXX flight". The airport records that the task instruction executed by the staff based on "Please ask the staff responsible for parking space allocation to allocate XXX parking spaces for XXX flight" is "Allocate XXX parking spaces for XXX flight", so the historical task instruction text is "Allocate XXX parking spaces for XXX flight".

[0076] Step 2: Perform text segmentation on the historical task text data and the historical task instruction text respectively to obtain a first segmentation set and a second segmentation set.

[0077] In the implementation of the present application, the text can be a Chinese text or an English text; for Chinese text, since the words in the sentence are continuous, it is necessary to split it into multiple independent words through existing word segmentation technology (such as Jieba word segmentation technology). For English text, the text is separated based on the spaces and punctuation marks in the text to obtain an initial word segmentation set; each word in the initial word segmentation set is subjected to stem extraction and word form restoration to normalize words of different tenses and word forms to obtain a target word segmentation set.

[0078] Among them, Jieba is a Python Chinese word segmentation component that currently performs relatively well. It uses a Chinese vocabulary to determine the association probability between Chinese characters, and forms phrases with high probability between Chinese characters to form word segmentation results.

[0079] Step 3: Filter the words in the first word set according to the length of each word, the task entity identifier and the frequency of occurrence in the historical task text data to obtain the third word set.

[0080] In an implementation manner of the present application, the segmentations contained in the entity library in the first segmentation set are labeled with task entity identifiers; wherein the entity library stores pre-set entity names related to airport tasks, such as flights, aircraft models, support nodes, terminals, etc.; the segmentations in the first segmentation set are screened according to the length of each segmentation in the first segmentation set, the task entity identifier and the frequency of occurrence in the historical task text data to obtain a third segmentation set.

[0081] The word segmentation labeling task entities included in the entity library in the first word segmentation set are identified, including: identifying the word segmentation in the first word segmentation set whose part of speech is noun to obtain a noun set; and identifying the word segmentation labeling task entities included in the entity library in the noun set.

[0082] Here, the present application performs part-of-speech recognition before marking the task entity identifier, which reduces the amount of calculation in the marking process and improves the marking efficiency. The word segmentation marking task entity identifier included in the entity library in the first word segmentation set can adopt the existing technology such as HanLP, NLTK, NER, etc., which depends on the actual situation and is not limited here.

[0083] The words in the first word set are screened according to the length of each word in the first word set, the task entity identifier, and the frequency of occurrence in the historical task text data, including:

[0084] a. Sort all the segmented words in the first segmented word set in descending order according to the length of each segmented word to obtain a segmented word sequence.

[0085] For example, the first participle set includes participle w, participle x, participle y, and participle z. The length of participle x > the length of participle z > the length of participle y > the length of participle w; the analysis sequence is: participle x, participle z, participle y, participle w.

[0086] b. Traverse each word in the first word set according to the order of arrangement in the word sequence.

[0087] c. If the ratio of the number of segmentations whose length is less than the length of the currently traversed segmentation to the total number of segmentations in the first segmentation set is greater than or equal to a preset ratio, the length of the currently traversed segmentation is determined as the screening length of the first segmentation set, and the traversal is stopped.

[0088] In the implementation manner of the present application, if the length of a segmentation word is too long, it indicates that the segmentation word is abnormal; the determined screening length is the maximum value of the normal length of the segmentations in the first segmentation word set.

[0089] d. If the ratio of the number of segmentations whose length is less than the length of the currently traversed segmentation to the total number of segmentations in the first segmentation set is less than the preset ratio, continue traversing.

[0090] For example, the analysis sequence is word x, word z, word y, word w, the total number of word segments is 4, and the preset ratio is 0.7; the first word x in the traversal analysis sequence, the number of word segments whose length is less than the length of the current traversal word x is 0, and 0 / 4=0, which is less than the preset ratio 0.7, then the second word z in the traversal analysis sequence is traversed; the number of word segments whose length is less than the length of the current traversal word z is 1, and 1 / 4=0.25, which is less than the preset ratio 0.7, then the third word y in the traversal analysis sequence is traversed; the number of word segments whose length is less than the length of the current traversal word y is 2, and 2 / 4=0.5, which is less than the preset ratio 0.7, then the fourth word w in the traversal analysis sequence is traversed; the number of word segments whose length is less than the length of the current traversal word w is 3, and 7 / 4=0.5, which is greater than the preset ratio 0.7, then the length of the current traversal word w is determined as the screening length of the first word set, and the traversal is stopped.

[0091] e. Remove the words in the first word set that are longer than the screening length and are not marked with the task entity identifier.

[0092] f. After the removal, the first segmented words whose frequency of appearance in the historical task text data is less than the preset frequency and which are not marked with the task entity identifier are removed.

[0093] Step 4: Determine the actual probability of the task instruction corresponding to each word in the second word segmentation set and the third word segmentation set, and obtain the actual probability matrix of the task instruction corresponding to the historical task text data.

[0094] In the implementation manner of the present application, the second word segmentation set is a set of word segments for task instructions in the historical task text data obtained by screening in the manner of the present application; the second analysis set is a set of task instructions executed by airport staff based on the original task message text corresponding to the historical task text data; the two are combined to determine the actual probability matrix of the task instructions corresponding to the historical task text data.

[0095] Here, one-hot encoding is performed on each word in the second word set and the third word set to obtain the actual probability matrix of the task instructions corresponding to the historical task text data.

[0096] Among them, One-Hot vector, also known as one-bit effective encoding, is a method of converting categorical variables into a form that can be understood by machine learning algorithms. In One-Hot encoding, a unique binary bit is assigned to each categorical variable, and this bit is used to represent the value of the variable. If the variable value is 1, the corresponding binary bit is 1; if the value is 0, the corresponding binary bit is 0; this value is used to represent the probability, the value is 1, the probability is 100%; the value is 0, the probability is 0. In One-Hot encoding, each variable is encoded only once, so it is called "one-bit effective".

[0097] Furthermore, word segmentation vector data corresponding to the historical task text data is obtained, including: mapping each word segmentation in the historical task text data into a high-dimensional vector space so that semantically similar word segments have a similar distance in the vector space, and obtaining word segmentation vector data corresponding to the historical task text data.

[0098] Here, because the lengths of each word segmentation are inconsistent, the word segmentation vector data needs to be padded or truncated. The purpose of this step is to ensure that the word segmentation vector data of all input task instruction extraction models have the same length to meet the requirements of model batch processing. For word segmentation vector data with insufficient length, special markers (such as <pad>) for padding; for word segmentation vector data that exceeds the length, you can choose to truncate the excess part. It is worth noting that we will count the length of all word segmentation vector data to determine the appropriate truncation length.

[0099] S102: Input the word segmentation vector data into the task instruction extraction model to obtain the task instruction extraction probability matrix.

[0100] Here, the task instruction extraction probability matrix contains the task instruction extraction probability corresponding to at least one word segmentation in the historical task text data; the task instruction extraction model is implemented based on the encoder-decoder architecture. In the encoding stage, the word segmentation vector data is converted into a feature vector rich in semantic information; and in the decoding stage, this vector is further decoded into a task instruction extraction probability matrix. In order to generate the instruction parameter list of the trigger task more accurately, we use the attention-enhanced bidirectional long short-term memory network (Attention-enhanced Bi-LSTM) to generate the instruction parameter sequence of the trigger task.

[0101] Furthermore, the task instruction extraction model includes an encoding unit and a decoding unit; the encoder part uses a Bi-LSTM model, which receives word segmentation vector data as input and generates a more comprehensive and detailed feature vector by deeply capturing the bidirectional semantic information in the word segmentation vector data. In the decoding stage, the attention mechanism is cleverly introduced to enhance the semantic representation ability of the Bi-LSTM model. This enables the model to dynamically focus on the key information in the input description when generating parameter sequences. This clever combination not only significantly improves the model's ability to extract core semantic features, but also further ensures the accuracy and effectiveness of the generated parameter sequence.

[0102] Specifically, the word segmentation vector data is input into the task instruction extraction model through the following steps to obtain the task instruction extraction probability matrix: the word segmentation vector data is input into the encoding unit to obtain the hidden state corresponding to each word in the historical task text; the hidden state corresponding to each word is combined with the hidden state of the previous word corresponding to each word and the hidden state of the next word corresponding to each word; the hidden state corresponding to each word is input into the decoding unit to obtain the task instruction extraction probability matrix; the decoding unit introduces attention weights for the hidden states corresponding to each word.

[0103] S103, performing model training on the task instruction extraction model according to the task instruction extraction probability matrix and the task instruction actual probability matrix.

[0104] In an implementation manner of the present application, a loss value corresponding to a task instruction extraction model is calculated based on a task instruction extraction probability matrix and a task instruction actual probability matrix; if the loss value is greater than a preset threshold, the task instruction extraction model is updated based on the task instruction extraction probability matrix and the task instruction actual probability matrix, and the updated model is continued to be trained based on the word segmentation vector data corresponding to the historical task text data in the airport and the task instruction actual probability matrix until the loss value of the model is less than or equal to the preset threshold; if the loss value is less than the preset threshold, the current task instruction extraction model is determined as a trained model.

[0105] Specifically, the task instruction extraction probability matrix and the task instruction actual probability matrix are substituted into the following formula to calculate the loss value corresponding to the task instruction extraction model.

[0106]

[0107] in, Extract the loss value corresponding to the model for the task instruction, Extract the number of word segments corresponding to the probability matrix for the task instructions, is the number of word segments corresponding to the actual probability matrix of the task instruction, is the probability of the ith word in the actual probability matrix of the task instruction, Extract the probability of the tth word in the probability matrix for the task instruction.

[0108] Here, in the process of training the model, we focus on its performance on the validation set and adjust various key parameters to continuously improve the performance of the model. We adjusted multiple model parameters including the number of Bi-LSTM hidden layer units, word vector dimension, and text vector length. As well as hyperparameters such as learning rate, batch size, number of training rounds, and optimization algorithm.

[0109] In addition, the model evaluates the trained task instruction extraction model using the following formula.

[0110] ;

[0111] Among them, BLEU is the model index, bp (brevity penalty) is the brevity penalty factor, which is used to penalize a too short task instruction extraction probability matrix. When the length of the task instruction extraction probability matrix is ​​less than the length of the task instruction extraction probability matrix, bp will be less than 1, thereby reducing the BLEU score; otherwise, bp is equal to 1. N is the maximum length of the task instruction extraction probability matrix. It is the weight of the nth word segmentation probability corresponding to the task instruction extraction probability matrix, and the sum of the weights of all word segmentation probabilities is 1. It is the precision of the nth word segmentation probability corresponding to the task instruction extraction probability matrix, that is, the proportion of the n-gram in the task instruction extraction probability matrix that appears in the task instruction actual probability matrix.

[0112] S104, extracting a task instruction sequence through the trained task instruction extraction model.

[0113] In an implementation manner of the present application, word segmentation vector data to be extracted corresponding to the task text data to be extracted is obtained; the word segmentation vector data to be extracted is input into a task instruction extraction model to obtain a target task instruction extraction probability matrix; all word segments corresponding to the target task instruction extraction probability matrix are generated into a task instruction sequence corresponding to the task text data to be extracted.

[0114] The task instruction sequence includes at least one word segment in the task text data to be extracted.

[0115] The embodiment of the present application provides a method for extracting a task instruction sequence, the method comprising: obtaining word segmentation vector data and a task instruction actual probability matrix corresponding to historical task text data in an airport; the task instruction actual probability matrix contains the task instruction actual probability corresponding to at least one word segmentation in the historical task text data; the word segmentation vector data includes vectors corresponding to all word segmentations in the historical task text data; the word segmentation vector data is input into a task instruction extraction model to obtain a task instruction extraction probability matrix; the task instruction extraction probability matrix contains the task instruction extraction probability corresponding to at least one word segmentation in the historical task text data; the task instruction extraction model is trained according to the task instruction extraction probability matrix and the task instruction actual probability matrix; and the task instruction sequence is extracted through the trained task instruction extraction model. The present application extracts task instructions from task texts through a task instruction extraction model, without the need for staff to manually extract task instructions, thereby improving the efficiency and accuracy of extracting task instructions.

[0116] Reference Figure 2 As shown, it is a flowchart of another method for extracting a task instruction sequence provided in an embodiment of the present application. The exemplary steps of the embodiment of the present application are described below:

[0117] S201. Input the word segmentation vector data into the encoding unit to obtain the hidden state corresponding to each word segmentation vector in the word segmentation vector data.

[0118] Among them, the hidden state corresponding to each participle combines the hidden state of each participle corresponding to the previous participle and the hidden state corresponding to the next participle.

[0119] The word segmentation vector data is input into the encoding unit through the following steps to obtain the hidden state corresponding to each word in the historical task text:

[0120] Step 1: Determine the forward hidden state corresponding to each word segmentation vector based on the hidden state of the previous word segmentation vector corresponding to each word segmentation vector.

[0121] Here, the forward LSTM is used according to the word vectors And the corresponding hidden state of the previous word vector To determine the word vector The corresponding forward hidden state :

[0122] The specific formula is: ;

[0123] in, is the LSTM function.

[0124] Step 2: Determine the backward hidden state corresponding to each word segmentation vector according to the hidden state of the next word segmentation vector corresponding to each word segmentation vector.

[0125] Here, the backward LSTM is used according to the word vectors And the corresponding next word vector The hidden state of To determine the word vector The corresponding backward hidden state :

[0126] The specific formula is: .

[0127] Step 3: Concatenate the forward hidden state and the backward hidden state to obtain the final hidden state corresponding to each word segmentation vector .

[0128] In the implementation manner of the present application, the forward hidden state and the backward hidden state are concatenated by the following formula.

[0129] .

[0130] S202: Input the hidden state corresponding to each word segmentation vector into a decoding unit to obtain a task instruction extraction probability matrix.

[0131] Among them, the decoding unit introduces attention weights for the hidden states corresponding to each word segment.

[0132] In the implementation mode of the present application, the hidden state corresponding to each word segmentation vector is input into the decoding unit through the following steps:

[0133] Step 1: According to the hidden state corresponding to each word segmentation vector Attention weights corresponding to each time step , determine the context vector corresponding to each time step s .

[0134] ;

[0135] Among them, n is the number of word segmentation vectors in the word segmentation vector data.

[0136] Here, the attention weight corresponding to each time step is calculated by the following formula:

[0137] ;

[0138] ;

[0139] in, It is an intermediate variable for calculating the attention weight, which represents the correlation score between the i-th position in the word vector data and each time step s. , and is a learnable parameter of the attention mechanism, used to learn how to calculate the relevance score , is the hidden state representation of the decoder LSTM after considering the current generated sequence, by calculating the context vector , the decoder can dynamically focus on the part of the word segmentation vector data that is relevant to the current output.

[0140] In addition, tanh is a loss function used in the decoder in pair with LSTM, which is used on the state and output and is a process of data.

[0141] Step 2: Determine the target hidden state corresponding to each time step based on the context vector corresponding to each time step, the target hidden state corresponding to the previous time step, and the word segmentation probability matrix; the word segmentation probability matrix corresponding to each time step includes the task instruction extraction probability corresponding to each word segmentation vector.

[0142] Among them, the greater the probability of task instruction extraction, the greater the possibility that the word segmentation vector is a task instruction.

[0143] Specifically, the context vector corresponding to each time step , corresponding to the target hidden state of the previous time step And the word segmentation probability matrix Substitute into the following formula to determine the target hidden state corresponding to each time step .

[0144] .

[0145] Step 3: Determine the word segmentation probability matrix corresponding to each time step based on the target hidden state corresponding to each time step.

[0146] Specifically, the target hidden state corresponding to each time step Substitute into the following formula to determine the word segmentation probability matrix corresponding to each time step .

[0147] ;

[0148] in, are the weights of the linear layer in the decoding unit, is the bias of the linear layer in the decoding unit.

[0149] is a normalized exponential function in probability theory and related fields, which can "compress" a K-dimensional vector z containing any real number into another K-dimensional real vector σ(z) so that each element ranges between (0,1) and the sum of all elements is 1. This function is often used in multi-classification problems.

[0150] Step 4: Determine the task instruction extraction probability matrix based on the word segmentation probability matrix corresponding to each time step.

[0151] In an implementation manner of the present application, the task instruction extraction probability of the word segmentation vector with the largest probability in the word segmentation probability matrix corresponding to each time step is extracted into the task instruction extraction probability matrix.

[0152] An embodiment of the present application provides another method for extracting a task instruction sequence, which can input word segmentation vector data into a task instruction extraction model to obtain a task instruction extraction probability matrix.

[0153] Based on the same inventive concept, an embodiment of the present application also provides a task instruction sequence extraction device corresponding to the task instruction sequence extraction method. Since the principle of solving the problem by the device in the embodiment of the present application is similar to the above-mentioned task instruction sequence extraction method in the embodiment of the present application, the implementation of the device can refer to the implementation of the method, and the repeated parts will not be repeated.

[0154] Reference Figure 3 FIG. 1 is a schematic diagram of a task instruction sequence extraction device provided in an embodiment of the present application, wherein the task instruction sequence extraction device comprises:

[0155] The acquisition module 301 is used to obtain the word segmentation vector data and the task instruction actual probability matrix corresponding to the historical task text data in the airport; the task instruction actual probability matrix contains the task instruction actual probability corresponding to at least one word segmentation in the historical task text data; the word segmentation vector data includes the vectors corresponding to all the word segmentations in the historical task text data;

[0156] An input module 302 is used to input the word segmentation vector data into a task instruction extraction model to obtain a task instruction extraction probability matrix; the task instruction extraction probability matrix contains a task instruction extraction probability corresponding to at least one word segmentation in the historical task text data;

[0157] A training module 303 is used to perform model training on the task instruction extraction model according to the task instruction extraction probability matrix and the task instruction actual probability matrix;

[0158] The extraction module 304 is used to extract the task instruction sequence through the trained task instruction extraction model.

[0159] In a possible implementation, the acquisition module 301 is specifically used to obtain the historical task instruction text corresponding to the historical task text data; perform text segmentation on the historical task text data and the historical task instruction text to obtain a first segmentation set and a second segmentation set; filter the segmentations in the first segmentation set according to the length of each segmentation, the task entity identifier and the frequency of occurrence in the historical task text data to obtain a third segmentation set; determine the actual probability of the task instruction corresponding to each segmentation in the second segmentation set and the third segmentation set to obtain an actual probability matrix of the task instruction corresponding to the historical task text data.

[0160] In one possible implementation, the task instruction extraction model includes an encoding unit and a decoding unit; an input module 302 is specifically used to input word segmentation vector data into the encoding unit to obtain a hidden state corresponding to each word segmentation vector in the word segmentation vector data; the hidden state corresponding to each word segmentation combines the hidden state of each word segmentation corresponding to the previous word segmentation and the hidden state of each word segmentation corresponding to the next word segmentation; the hidden state corresponding to each word segmentation vector is input into the decoding unit to obtain a task instruction extraction probability matrix; the decoding unit introduces attention weights for the hidden states corresponding to each word segmentation.

[0161] In a possible implementation, the input module 302 is further configured to:

[0162] Determine the forward hidden state corresponding to each word segmentation vector according to the hidden state of the previous word segmentation vector corresponding to each word segmentation vector;

[0163] According to the hidden state of the next word segmentation vector corresponding to each word segmentation vector, determine the backward hidden state corresponding to each word segmentation vector;

[0164] The forward hidden state and the backward hidden state are concatenated to obtain the final hidden state corresponding to each word segmentation vector.

[0165] In a possible implementation, the input module 302 is further configured to:

[0166] Determine the context vector corresponding to each time step according to the attention weight corresponding to the hidden state of each word segmentation vector at each time step;

[0167] Determine the target hidden state corresponding to each time step according to the context vector corresponding to each time step, the target hidden state corresponding to the previous time step and the word segmentation probability matrix; the word segmentation probability matrix corresponding to each time step includes the task instruction extraction probability corresponding to each word segmentation vector;

[0168] According to the target hidden state corresponding to each time step, determine the word segmentation probability matrix corresponding to each time step;

[0169] According to the word segmentation probability matrix corresponding to each time step, the task instruction extraction probability matrix is ​​determined.

[0170] In a possible implementation, the input module 302 is further configured to:

[0171] The task instruction extraction probability of the word segmentation vector with the largest probability in the word segmentation probability matrix corresponding to each time step is extracted into the task instruction extraction probability matrix.

[0172] In one possible implementation, the extraction module 304 is specifically used to obtain the word segmentation vector data to be extracted corresponding to the task text data to be extracted; input the word segmentation vector data to be extracted into the task instruction extraction model to obtain the target task instruction extraction probability matrix; and generate all the word segments corresponding to the target task instruction extraction probability matrix into a task instruction sequence corresponding to the task text data to be extracted.

[0173] The embodiment of the present application provides a device for extracting a task instruction sequence, and the method includes: an acquisition module 301, which is used to obtain word segmentation vector data and a task instruction actual probability matrix corresponding to historical task text data in an airport; the task instruction actual probability matrix contains the task instruction actual probability corresponding to at least one word segmentation in the historical task text data; the word segmentation vector data includes vectors corresponding to all word segments in the historical task text data; an input module 302, which is used to input the word segmentation vector data into a task instruction extraction model to obtain a task instruction extraction probability matrix; the task instruction extraction probability matrix contains the task instruction extraction probability corresponding to at least one word segmentation in the historical task text data; a training module 303, which is used to perform model training on the task instruction extraction model according to the task instruction extraction probability matrix and the task instruction actual probability matrix; an extraction module 304, which is used to extract a task instruction sequence through the trained task instruction extraction model. The present application extracts task instructions from task texts through a task instruction extraction model, without the need for staff to manually extract task instructions, thereby improving the efficiency and accuracy of extracting task instructions.

[0174] like Figure 4 As shown, an electronic device 400 provided in an embodiment of the present application includes: a processor 401, a memory 402 and a bus, the memory 402 stores machine-readable instructions executable by the processor 401, when the electronic device is running, the processor 401 and the memory 402 communicate through the bus, and the processor 401 executes the machine-readable instructions to perform the steps of the extraction method of the task instruction sequence as described above.

[0175] Specifically, the memory 402 and the processor 401 can be general-purpose memories and processors, which are not specifically limited here. When the processor 401 runs the computer program stored in the memory 402, the above-mentioned task instruction sequence extraction method can be executed.

[0176] Corresponding to the above-mentioned method for extracting the task instruction sequence, an embodiment of the present application also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the method for extracting the task instruction sequence are executed.

[0177] Those skilled in the art can clearly understand that, for the convenience and simplicity of description, the specific working process of the system and device described above can refer to the corresponding process in the method embodiment, and will not be repeated in this application. In the several embodiments provided in this application, it should be understood that the disclosed system, device and method can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the modules is only a logical function division. There may be other division methods in actual implementation. For example, multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, indirect coupling or communication connection of devices or modules, which can be electrical, mechanical or other forms.

[0178] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0179] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0180] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a non-volatile computer-readable storage medium that is executable by a processor. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the information processing method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as USB flash drives, mobile hard drives, ROM, RAM, magnetic disks, or optical disks.

[0181] The above are only specific implementations of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.< / pad>

Claims

1. A method for extracting a task instruction sequence, characterized in that: The method comprises: Obtain word segmentation vector data and task instruction actual probability matrix corresponding to historical task text data in the airport; the task instruction actual probability matrix contains the task instruction actual probability corresponding to at least one word segmentation in the historical task text data; the word segmentation vector data includes vectors corresponding to all word segmentations in the historical task text data; Input the word segmentation vector data into the task instruction extraction model to obtain a task instruction extraction probability matrix; the task instruction extraction probability matrix contains the task instruction extraction probability corresponding to at least one word segmentation in the historical task text data; According to the task instruction extraction probability matrix and the task instruction actual probability matrix, the task instruction extraction model is trained, including: substituting the task instruction extraction probability matrix and the task instruction actual probability matrix into the following formula to calculate the loss value corresponding to the task instruction extraction model; in, Extract the loss value corresponding to the model for the task instruction, Extract the number of word segments corresponding to the probability matrix for the task instructions, is the number of word segments corresponding to the actual probability matrix of the task instruction, is the probability of the ith word in the actual probability matrix of the task instruction, The probability of the tth word segment in the task instruction extraction probability matrix; if the loss value is greater than a preset threshold, the task instruction extraction model is updated according to the task instruction extraction probability matrix and the task instruction actual probability matrix, and the updated model is continuously trained according to the word segmentation vector data corresponding to the historical task text data in the airport and the task instruction actual probability matrix until the loss value of the model is less than or equal to the preset threshold; if the loss value is less than the preset threshold, the current task instruction extraction model is determined as a trained model; Extracting the task instruction sequence through the trained task instruction extraction model; The task instruction extraction model includes an encoding unit and a decoding unit; the word segmentation vector data is input into the task instruction extraction model to obtain a task instruction extraction probability matrix, including: inputting the word segmentation vector data into the encoding unit to obtain a hidden state corresponding to each word segmentation vector in the word segmentation vector data; the hidden state corresponding to each word segmentation combines the hidden state corresponding to the previous word segmentation and the hidden state corresponding to the next word segmentation; the hidden state corresponding to each word segmentation vector is input into the decoding unit to obtain a task instruction extraction probability matrix; the decoding unit introduces an attention weight for the hidden state corresponding to each word segmentation; The hidden states corresponding to the word segmentation vectors are input into the decoding unit to obtain a task instruction extraction probability matrix, including: determining the context vector corresponding to each time step according to the attention weight corresponding to the hidden state corresponding to each word segmentation vector at each time step; determining the target hidden state corresponding to each time step according to the context vector corresponding to each time step, the target hidden state corresponding to the previous time step and the word segmentation probability matrix; the word segmentation probability matrix corresponding to each time step includes the task instruction extraction probability corresponding to each word segmentation vector; determining the word segmentation probability matrix corresponding to each time step according to the target hidden state corresponding to each time step; determining the task instruction extraction probability matrix according to the word segmentation probability matrix corresponding to each time step; The task instruction extraction model completed through training extracts a task instruction sequence, including: obtaining the to-be-extracted word segmentation vector data corresponding to the to-be-extracted task text data; inputting the to-be-extracted word segmentation vector data into the task instruction extraction model to obtain a target task instruction extraction probability matrix; and generating a task instruction sequence corresponding to the to-be-extracted task text data using all the word segments corresponding to the target task instruction extraction probability matrix.

2. The method for extracting a task instruction sequence according to claim 1, characterized in that: The actual probability matrix of the task instructions corresponding to the historical task text data is obtained by the following steps: Obtain the historical task instruction text corresponding to the historical task text data; Performing text segmentation on the historical task text data and the historical task instruction text respectively to obtain a first segmentation set and a second segmentation set; The segmented words in the first segmented word set are screened according to the length of each segmented word, the task entity identifier, and the frequency of occurrence in the historical task text data to obtain a third segmented word set; The actual probability of the task instruction corresponding to each word in the second word segmentation set and the third word segmentation set is determined to obtain the actual probability matrix of the task instruction corresponding to the historical task text data.

3. The method for extracting a task instruction sequence according to claim 1, characterized in that: The step of inputting the word segmentation vector data into the encoding unit to obtain a hidden state corresponding to each word segmentation vector in the word segmentation vector data includes: Determine the forward hidden state corresponding to each word segmentation vector according to the hidden state of the previous word segmentation vector corresponding to each word segmentation vector; According to the hidden state of the next word segmentation vector corresponding to each word segmentation vector, determine the backward hidden state corresponding to each word segmentation vector; The forward hidden state and the backward hidden state are concatenated to obtain the final hidden state corresponding to each word segmentation vector.

4. The method for extracting a task instruction sequence according to claim 1, characterized in that: Determining the task instruction extraction probability matrix according to the word segmentation probability matrix corresponding to each time step includes: The task instruction extraction probability of the word segmentation vector with the largest probability in the word segmentation probability matrix corresponding to each time step is extracted into the task instruction extraction probability matrix.

5. A task instruction sequence extraction device, characterized in that: The device comprises: An acquisition module is used to acquire word segmentation vector data and a task instruction actual probability matrix corresponding to the historical task text data in the airport; the task instruction actual probability matrix contains the task instruction actual probability corresponding to at least one word segmentation in the historical task text data; the word segmentation vector data includes vectors corresponding to all word segmentations in the historical task text data; An input module, used for inputting the word segmentation vector data into a task instruction extraction model to obtain a task instruction extraction probability matrix; the task instruction extraction probability matrix contains a task instruction extraction probability corresponding to at least one word segmentation in the historical task text data; A training module, used for performing model training on the task instruction extraction model according to the task instruction extraction probability matrix and the task instruction actual probability matrix, including: substituting the task instruction extraction probability matrix and the task instruction actual probability matrix into the following formula to calculate the loss value corresponding to the task instruction extraction model; in, Extract the loss value corresponding to the model for the task instruction, Extract the number of word segments corresponding to the probability matrix for the task instructions, is the number of word segments corresponding to the actual probability matrix of the task instruction, is the probability of the ith word in the actual probability matrix of the task instruction, The probability of the tth word segment in the task instruction extraction probability matrix; if the loss value is greater than a preset threshold, the task instruction extraction model is updated according to the task instruction extraction probability matrix and the task instruction actual probability matrix, and the updated model is continuously trained according to the word segmentation vector data corresponding to the historical task text data in the airport and the task instruction actual probability matrix until the loss value of the model is less than or equal to the preset threshold; if the loss value is less than the preset threshold, the current task instruction extraction model is determined as a trained model; An extraction module, used for extracting a task instruction sequence through a trained task instruction extraction model; The task instruction extraction model includes an encoding unit and a decoding unit; the input module is specifically used to: input the word segmentation vector data into the encoding unit to obtain the hidden state corresponding to each word segmentation vector in the word segmentation vector data; the hidden state corresponding to each word segmentation combines the hidden state corresponding to the previous word segmentation and the hidden state corresponding to the next word segmentation; the hidden state corresponding to each word segmentation vector is input into the decoding unit to obtain the task instruction extraction probability matrix; the decoding unit introduces attention weights for the hidden states corresponding to each word segmentation; The input module is specifically used to: determine the context vector corresponding to each time step according to the attention weight corresponding to the hidden state corresponding to each word segmentation vector at each time step; determine the target hidden state corresponding to each time step according to the context vector corresponding to each time step, the target hidden state corresponding to the previous time step and the word segmentation probability matrix; the word segmentation probability matrix corresponding to each time step includes the task instruction extraction probability corresponding to each word segmentation vector; determine the word segmentation probability matrix corresponding to each time step according to the target hidden state corresponding to each time step; determine the task instruction extraction probability matrix according to the word segmentation probability matrix corresponding to each time step; The extraction module is specifically used to: obtain the word segmentation vector data to be extracted corresponding to the task text data to be extracted; input the word segmentation vector data to be extracted into the task instruction extraction model to obtain the target task instruction extraction probability matrix; and generate all the word segments corresponding to the target task instruction extraction probability matrix into a task instruction sequence corresponding to the task text data to be extracted.

6. An electronic device, characterized in that: include: A processor, a storage medium and a bus, wherein the storage medium stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor and the storage medium communicate via the bus, and the processor executes the machine-readable instructions to perform the steps of the method for extracting a task instruction sequence as described in any one of claims 1 to 4.

7. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method for extracting a task instruction sequence according to any one of claims 1 to 4 are executed.

Citation Information

Patent Citations

  • Chinese named entity recognition method and device, electronic equipment and storage medium

    CN116702777A

  • Task sequence adjustment method and device, equipment and storage medium

    CN117112173A

  • Information extraction method and device based on large model, electronic equipment and storage medium

    CN117520472A

  • Text topic classification method and device, chip and terminal

    CN117708324A

  • Task instruction construction method and task processing method

    CN117762499A