A method for electronic contract task assignment based on deep semantic analysis

Using deep semantic analysis methods to encode and remap electronic contract text data, generate manifold vectors, and build task content identification models, solving the problems of low efficiency in electronic contract content understanding and task assignment, and achieving efficient task content identification and assignment. .

CN117408449BActive Publication Date: 2024-09-13SHANGHAI LANGHUI HUIKE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311226929.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-09-21
Publication Date
2024-09-13
Estimated Expiration
2043-09-21

AI Technical Summary

Technical Problem

Existing technology is difficult to effectively realize the rapid understanding of electronic contract content and efficient task assignment, resulting in low contract implementation efficiency.

Method used

Using a deep semantic analysis method, the electronic contract text data and task content data are encoded, processed and remapped to generate a manifold vector, and a task content recognition model is constructed to identify the task content and assign it.

Benefits of technology

It improves the rapid understanding of electronic contract content and the efficiency of task assignment, enhances the semantic continuity of text encoding vectors, and ensures the accurate identification and assignment of task content.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117408449B
    Figure CN117408449B
Patent Text Reader

Abstract

The present invention relates to the technical field of semantic analysis, and discloses a method for electronic contract task assignment of deep semantic analysis, the method comprising: encoding electronic contract text data and task content text data; remapping the electronic contract vector and task content vector obtained by the encoding process to obtain a manifold electronic contract vector and a manifold task content vector; using an electronic contract task content recognition model to perform task content recognition on the manifold electronic contract vector, and performing task assignment according to the task content recognition result. The present invention combines the correlation between sentence vectors, and without changing the semantics of the sentence vector itself, adds the semantics of the neighboring sentence vector to each sentence vector to achieve remapping, so that each sentence vector after remapping can represent the semantic information of itself and the neighborhood, improve the effectiveness and accuracy of task content recognition, promote the rapid understanding and implementation of the electronic contract content, and improve the efficiency of task assignment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of semantic analysis, and in particular to an electronic contract task assignment method for deep semantic analysis. Background Art

[0002] Electronic contracts are widely used in Internet finance, banking, e-commerce and other businesses, breaking traditional geographical restrictions and changing the traditional delivery methods of contract documents such as express delivery and fax, providing feasibility for the application of electronic contracts in the shipping industry. The promotion of electronic contracts has greatly improved the efficiency of industrial exchanges while also providing convenience for the intelligent analysis of contracts. In order to further improve the intelligence level of electronic contracts, the present invention proposes an electronic contract task assignment method based on deep semantic analysis. Based on the strong relevance and professionalism of the electronic contract task content, the deep semantic analysis technology is used to realize the automatic association of the electronic contract task content, promote the rapid understanding and implementation of the electronic contract content, and improve the efficiency of task assignment. Summary of the invention

[0003] In view of this, the present invention provides an electronic contract task assignment method for deep semantic analysis, the purpose of which is to: 1) use two encoding methods to encode and represent the electronic contract and task content text data respectively, in the encoding process of the word segmentation result in the electronic contract, generate the word segmentation result encoding result by combining the position of the word segmentation result and the previous text information, so that the encoding result of the word segmentation result effectively combines the previous information and the position information, enhances the semantic continuity of the electronic contract text encoding vector, and performs encoding processing on the content description vocabulary in the task content text based on the attention mechanism, thereby obtaining the encoding result that can effectively represent the effective information of the task content; 2) construct two encoding methods for encoding the word segmentation result and the previous text information respectively. The electronic contract sentence vector remapping matrix and the task content sentence vector remapping matrix are remapped by the coding results. By combining the correlation between sentence vectors, the semantics of the neighborhood sentence vectors are added to each sentence vector without changing the semantics of the sentence vector itself, so that each sentence vector after remapping can represent the semantic information of itself and the neighborhood. Then, the manifold electronic contract vector and the manifold task content vector are decomposed respectively by combining the feature decomposition method, and the feature vector matrix is ​​obtained to realize the task content recognition of the electronic contract vector. According to the task content recognition results, the electronic contract text data to be assigned is assigned tasks, which promotes the rapid understanding and implementation of the electronic contract content and improves the efficiency of task assignment.

[0004] To achieve the above object, the present invention provides a method for assigning electronic contract tasks based on deep semantic analysis, comprising the following steps:

[0005] S1: obtaining electronic contract text data to be assigned, and generating text data of various task contents, respectively encoding the electronic contract text data and the task content text data to obtain an electronic contract vector and a task content vector;

[0006] S2: remap the electronic contract vector and the task content vector obtained by the encoding process to obtain a manifold electronic contract vector and a manifold task content vector respectively;

[0007] S3: constructing an electronic contract task content recognition model, wherein the electronic contract task content recognition model takes a manifold electronic contract vector and a manifold task content vector as input, and takes the task content corresponding to the manifold electronic contract vector as output;

[0008] S4: Use the electronic contract task content recognition model to perform task content recognition on the manifold electronic contract vector of the electronic contract text data to be assigned, and assign tasks to the electronic contract text data to be assigned based on the task content recognition results.

[0009] As a further improvement method of the present invention:

[0010] Optionally, in step S1, the electronic contract text data to be assigned is obtained, and text data of various task contents are generated, including:

[0011] Get the electronic contract text to be assigned and perform word segmentation to obtain the electronic contract text data to be assigned:

[0012] X=(x1,x2,...,x n ,...,x N )

[0013] in:

[0014] X represents the electronic contract text data to be assigned, n represents the nth word segmentation result in the electronic contract text data X, and N represents the total number of word segmentation results obtained by word segmentation processing of the electronic contract text;

[0015] The word segmentation process of any contract text in the electronic contract text is as follows:

[0016] Pre-build a dictionary of commonly used words in the contract text, intercept the first s text characters in the contract text and compare and match them with the common words in the dictionary of commonly used words in the contract text, if the match fails, intercept the first s-1 text characters in the contract text and compare and match them with the common words in the dictionary of commonly used words in the contract text, and so on, until the match is successful or only one text character is left in the contract text, take the successfully matched contract text character as the successful matching word segmentation result, delete the word segmentation result before the sentence of the contract text, and re-perform the common word comparison and matching;

[0017] Generate text data for various tasks:

[0018]

[0019] in:

[0020] Text data representing the content of the mth electronic contract task, Represents Y m The mth content description word in , M represents the number of types of electronic contract task content generated, and K represents the total number of content description words for each type of electronic contract task content generated. In the embodiment of the present invention, the punctuation mark in the text data is also a segmentation result or a content description word, and the punctuation mark is encoded using the [CLS] symbol.

[0021] Optionally, in step S1, encoding the electronic contract text data and the task content text data respectively includes:

[0022] The electronic contract text data and the task content text data are encoded respectively to obtain the electronic contract vector and the task content vector, wherein the encoding process of the text data is as follows:

[0023] S11: Perform one-hot encoding on any word segmentation results in the electronic contract text data and content description words in the task content text data to obtain one-hot encoding results of any word segmentation results and content description words;

[0024] S12: Assign the word segmentation results and content description words to corresponding sentences according to the punctuation marks in the text data, and perform weight calculation on the word segmentation results:

[0025]

[0026] in:

[0027] w(x n ) represents the word segmentation result x n The weight of

[0028] exp(·) represents an exponential function with a natural constant as the base;

[0029] L(x n ) represents the word segmentation result x n The total number of word segmentation results in the sentence to which it belongs, loc(x n ) represents the word segmentation result x n The position in the sentence, i.e. the segmentation result x n is the loc(x)th sentence of the sentence n ) word segmentation results;

[0030] count(x n ) represents the word segmentation result x n The number of times it appears in the electronic contract text data X;

[0031] Sum(X) represents the number of sentences in the electronic contract text data X, Sum(X,x n ) indicates that the word segmentation result x appears in the electronic contract text data X n Number of sentences;

[0032] And set the weight of content description words to 1;

[0033] S13: Based on the word segmentation results and the weights of the content description words, the word segmentation results and the one-hot encoding representation results of the content description words are re-encoded:

[0034]

[0035]

[0036] in:

[0037] z(x n ) represents the word segmentation result x n The re-encoding result is Content description words The re-encoding result;

[0038] w(x n ) represents the word segmentation result x n The weight of Content description words The weight of

[0039] W X Represents the preset word segmentation result recoding matrix parameters, W Y Represents the preset content description vocabulary recoding matrix parameters;

[0040] σ1(·),σ2(·) represent activation functions, where σ1(·) is the ReLU activation function and σ2(·) is the Sigmoid activation function;

[0041] The punctuation marks were not re-encoded.

[0042] S14: Based on the re-encoding processing results, an electronic contract vector and a task content vector are respectively constructed:

[0043] z(X)=(z(x1),z(x2),...,z(x n ),...,z(x N ))

[0044]

[0045] in:

[0046] z(X) represents the electronic contract vector;

[0047] z(Y m )The task content vector of the mth electronic contract task content.

[0048] Optionally, in step S2, the electronic contract vector and the task content vector obtained by the encoding process are remapped respectively, including:

[0049] The electronic contract vector and task content vector obtained by encoding are remapped respectively, and the remapping process is as follows:

[0050] S21: Split the electronic contract vector and the task content vector into sentence vectors respectively, and obtain the electronic contract sentence vector set and the task content sentence vector set:

[0051]

[0052]

[0053] in:

[0054] represents the electronic contract sentence vector set, Sum(X) represents the number of sentences in the electronic contract text data X, z(X j ) represents the sentence vector of the j-th sentence text data in the electronic contract text data X;

[0055] Indicates the jth sentence in the jth text data num The re-encoding result of word segmentation results, j num represents the number of word segmentation results in the jth sentence of the electronic contract text data X;

[0056] The task content sentence vector set representing the mth electronic contract task content, z(Y m (u)) represents the sentence vector of the u-th sentence text data in the m-th electronic contract task content, Sum(Y m ) represents the number of sentences in the mth type of electronic contract task content;

[0057] Indicates the mth sentence in the jth sentence text data num The re-encoding results of (u) content description words, m num (u) represents the number of content description words in the jth sentence of text data;

[0058] In the embodiment of the present invention, the sentence vector includes other re-encoding results except punctuation marks;

[0059] S22: For any electronic contract sentence vector z(X j ), and calculate the electronic contract sentence vector z(X j ) and other electronic contract sentence vectors z(X s )’s vector distance:

[0060] dis(z(X j ),z(X s ))=||z(X j )―z(X s )||2

[0061] in:

[0062] dis(z(X j ),z(X s )) represents the electronic contract sentence vector z(X j ) and the electronic contract sentence vector z(X s ) vector distance, s∈

[0063] [1,Sum(X)],s≠j;

[0064] ||·||2 represents the L2 norm;

[0065] Select the vector closest to j num The electronic contract sentence vector is used as the electronic contract sentence vector z(X j )’s neighborhood vector;

[0066] S23: Construct the objective function for solving the vector remapping matrix of the electronic contract sentence:

[0067]

[0068]

[0069] in:

[0070] Ω j (X) represents the electronic contract sentence vector z(X j ), c represents any electronic contract sentence vector in the neighborhood vector set;

[0071] W(j,c) represents the electronic contract sentence vector z(X j ) and the remapping parameters of the electronic contract sentence vector c;

[0072] ||·|| represents the L1 norm;

[0073] The Lagrange multiplier method is used to solve the objective function and obtain the electronic contract sentence vector z(X j )’s remapping matrix W(j):

[0074] W(j)=[W(j,1),W(j,2),...,W(j,c),...,W(j,j num )]

[0075] Based on the remapping matrix, the electronic contract sentence vector z(X j ) is remapped, where the mapping formula is:

[0076]

[0077] in:

[0078] z * (X j ) represents the electronic contract sentence vector z(X j )’s remapping result;

[0079] Repeat steps S22-S23 to obtain the remapping results of all electronic contract sentence vectors in the electronic contract sentence vector set;

[0080] S24: For any task content sentence vector of the mth electronic contract task content, obtain a neighborhood vector in the task content sentence vector set of the mth electronic contract task content, and construct an objective function for solving the task content sentence vector remapping matrix to solve the remapping parameters, and then construct a remapping matrix, remap the task content sentence vector based on the remapping matrix, and obtain the remapping result, then z(Y m The remapping result of (u)) is z * (Y m (u));

[0081] S25: Construct the manifold electronic contract vector and the manifold task content vector:

[0082] f(X)=(z * (X1),z * (X2),...,z * (X j ),...,z * (X Sum(X) ))

[0083] f(Y m )=(z * (Y m (1)),z * (Y m (2)),...,z * (Ym (u)),...,z * (Y m (Sum(Y m ))))

[0084] in:

[0085] f(X) represents the manifold electronic contract vector;

[0086] f(Y m ) represents the manifold task content vector of the mth type of electronic contract task content.

[0087] Optionally, the electronic contract task content recognition model is constructed in step S3, including:

[0088] Constructing an electronic contract task content recognition model, wherein the electronic contract task content recognition model takes a manifold electronic contract vector and a manifold task content vector as input and takes the task content corresponding to the manifold electronic contract vector as output;

[0089] The electronic contract task content recognition model includes an input layer, a semantic association layer and an output layer. The input layer is used to receive the manifold electronic contract vector of the electronic contract to be assigned and the manifold task content vector of all task contents, and perform feature decomposition processing on the input results. The semantic association layer is used to calculate the degree of semantic association between the manifold electronic contract vector and any manifold content vector, and select the task content corresponding to the manifold content vector with the highest semantic association for output. The output result is the task content recognition result corresponding to the electronic contract to be assigned.

[0090] Optionally, the training process of the electronic contract task content recognition model in step S3 includes:

[0091] Get D groups of manifold electronic contract vectors and corresponding manifold task content vectors to form the training data set data:

[0092] data={(G d ,F d )|d∈[1,D]}

[0093] in:

[0094] G d represents the electronic contract vector of the dth group of manifolds obtained, F d is the manifold electronic contract vector G d The corresponding manifold task content vector; in the embodiment of the present invention, the manifold task content vector F d The corresponding electronic contract task content is used to describe the manifold electronic contract vector G d The corresponding electronic contract;

[0095] The training process of the electronic contract task content recognition model based on the training data set data is as follows:

[0096] S31: Construct the training objective function Loss(H,W) of the electronic contract task content recognition model:

[0097]

[0098] in:

[0099] Indicates G d Perform eigendecomposition to obtain the eigenvector matrix corresponding to the H eigenvectors obtained by decomposition;

[0100] Indicates F d Perform eigendecomposition to obtain the eigenvector matrix corresponding to the H eigenvectors obtained by decomposition;

[0101] W represents the mapping parameter to be optimized, and H represents the number of eigenvector decompositions to be optimized;

[0102] Sim(·) represents the cosine similarity algorithm;

[0103] Indicates that the selection makes The largest eigenvector matrix

[0104] S32: Initialize mapping parameters W 0 , set the optimization times of the current mapping parameter to t, the initial value of t is 0, the maximum value is Max, then the mapping parameter obtained by the tth optimization is W t ;

[0105] S33: Use the Adam optimization algorithm to solve the mapping parameters in the training objective function, and the solution is W * , and based on the mapping parameter W * An electronic contract task content recognition model is constructed.

[0106] Optionally, in step S4, the electronic contract task content recognition model is used to perform task content recognition on the manifold electronic contract vector of the electronic contract text data to be assigned, including:

[0107] The electronic contract task content recognition model is used to perform task content recognition on the manifold electronic contract vector f(X) to be assigned electronic contract text data, where the task content recognition process is as follows:

[0108] S41: The input layer performs eigendecomposition on the manifold electronic contract vector f(X) and the manifold task content vectors corresponding to the M types of electronic contract task contents, decomposing them to obtain H eigenvalues ​​and corresponding eigenvectors, and constructing the eigenvector matrix from the H eigenvectors. The eigenvector matrix of the manifold electronic contract vector f(X) is Q(X), and the eigenvector matrix of the manifold task content vector f(Y m ) corresponds to the eigenvector matrix Q(Y m );

[0109] S42: The semantic association layer performs feature mapping on the feature vector matrix Q(X), where the feature mapping formula is:

[0110] Q′(X)=W * Q(X)

[0111] in:

[0112] W * Represents mapping parameters in the semantic association layer;

[0113] Q′(X) represents the feature mapping result of the feature vector matrix Q(X);

[0114] Calculate the cosine similarity between the feature mapping result Q′(X) and the feature vector matrix corresponding to any manifold task content vector, and use the cosine similarity calculation result as the semantic association degree between the manifold electronic contract vector f(X) and the corresponding manifold task content vector;

[0115] S43: Selecting and outputting the task content corresponding to the manifold content vector with the highest semantic association, the output result is the task content recognition result corresponding to the electronic contract to be assigned;

[0116] Electronic contract tasks are assigned based on the results of task content identification.

[0117] In order to solve the above problem, the present invention provides an electronic device, the electronic device comprising:

[0118] A memory storing at least one instruction;

[0119] Communication interface, enabling electronic equipment to communicate; and

[0120] The processor executes the instructions stored in the memory to implement the electronic contract task assignment method of deep semantic analysis described above.

[0121] In order to solve the above problems, the present invention also provides a computer-readable storage medium, in which at least one instruction is stored. The at least one instruction is executed by a processor in an electronic device to implement the above-mentioned electronic contract task assignment method of deep semantic analysis.

[0122] Compared with the prior art, the present invention proposes an electronic contract task assignment method based on deep semantic analysis, which has the following advantages:

[0123] First, this scheme proposes a text data encoding and representation method, which encodes the electronic contract text data and the task content text data respectively to obtain the electronic contract vector and the task content vector, wherein the text data encoding and processing flow is as follows: any word segmentation results in the electronic contract text data and the content description words in the task content text data are represented by one-hot encoding to obtain any word segmentation results and the one-hot encoding representation results of the content description words; the word segmentation results and the content description words are attributed to the corresponding sentences according to the punctuation marks in the text data, and the word segmentation results are weighted:

[0124]

[0125] Where: w(x n ) represents the word segmentation result x n The weight of; exp(·) represents the exponential function with the natural constant as the base; L(x n ) represents the word segmentation result x n The total number of word segmentation results in the sentence to which it belongs, loc(x n ) represents the word segmentation result x n The position in the sentence, i.e. the segmentation result x n is the loc(x)th sentence of the sentence n ) word segmentation results; count(x n ) represents the word segmentation result x n The number of times it appears in the electronic contract text data X; Sum(X) represents the number of sentences in the electronic contract text data X, Sum(X,x n ) indicates that the word segmentation result x appears in the electronic contract text data X n The number of sentences; and set the weight of the content description vocabulary to 1; based on the word segmentation results and the weight of the content description vocabulary, the word segmentation results and the unique hot encoding representation results of the content description vocabulary are re-encoded:

[0126]

[0127]

[0128] Where: z(x n ) represents the word segmentation result x n The re-encoding result is Content description words The recoding result of w(x n ) represents the word segmentation result x n The weight of Content description words The weight of W X Represents the preset word segmentation result recoding matrix parameters, W Y represents the preset content description vocabulary recoding matrix parameters; σ1(·), σ2(·) represent activation functions, where σ1(·) is the ReLU activation function and σ2(·) is the Sigmoid activation function; the punctuation marks are not recoded; based on the recoding results, the electronic contract vector and the task content vector are constructed respectively:

[0129] z(X)=(z(x1),z(x2),...,z(x n ),...,z(x N ))

[0130]

[0131] Where: z(X) represents the electronic contract vector; z(Y m ) The task content vector of the mth electronic contract task content. This scheme uses two encoding methods to encode and represent the electronic contract and task content text data respectively. In the encoding process of the word segmentation result in the electronic contract, the word segmentation result encoding result is generated by combining the position of the word segmentation result and the previous text information, so that the encoding result of the word segmentation result effectively combines the previous information and position information, and enhances the semantic continuity of the electronic contract text encoding vector. The content description vocabulary in the task content text is encoded based on the attention mechanism, and then the encoding result that can effectively represent the effective information of the task content is obtained.

[0132] At the same time, this scheme proposes a text vector remapping method to remap the electronic contract vector and task content vector obtained by encoding, respectively. The remapping process is as follows:

[0133] S21: Split the electronic contract vector and the task content vector into sentence vectors respectively, and obtain the electronic contract sentence vector set and the task content sentence vector set:

[0134]

[0135]

[0136] in: represents the electronic contract sentence vector set, Sum(X) represents the number of sentences in the electronic contract text data X, z(X j ) represents the sentence vector of the j-th sentence text data in the electronic contract text data X; Indicates the jth sentence in the jth text datanum The re-encoding result of word segmentation results, j num represents the number of word segmentation results in the jth sentence of the electronic contract text data X; z(Y m (u)) represents the sentence vector of the u-th sentence text data in the m-th electronic contract task content, Sum(Y m ) represents the number of sentences in the mth type of electronic contract task content; Indicates the mth sentence in the jth sentence text data num The re-encoding results of (u) content description words, m num (u) represents the number of content description words in the jth sentence text data; for any electronic contract sentence vector z(X j ), and calculate the electronic contract sentence vector z(X j ) and other electronic contract sentence vectors z(X s )’s vector distance:

[0137] dis(z(X j ),z(X s ))=||z(X j )―z(X s )||2

[0138] Where: dis(z(X j ),z(X s )) represents the electronic contract sentence vector z(X j ) and the electronic contract sentence vector z(X s ), s∈[1,Sum(X)], s≠j; ||·||2 represents the L2 norm; select the j with the closest vector distance num The electronic contract sentence vector is used as the electronic contract sentence vector z(X j )’s neighborhood vector; construct the objective function for solving the electronic contract sentence vector remapping matrix:

[0139]

[0140]

[0141] Where: Ω j (X) represents the electronic contract sentence vector z(X j ), c represents any electronic contract sentence vector in the neighborhood vector set; W(j,c) represents the electronic contract sentence vector z(X j ) and the remapping parameters of the electronic contract sentence vector c; ||·|| represents the L1 norm; the Lagrange multiplier method is used to solve the objective function and obtain the electronic contract sentence vector z(X j )’s remapping matrix W(j):

[0142] W(j)=[W(j,1),W(j,2),...,W(j,c),...,W(j,j num )]

[0143] Based on the remapping matrix, the electronic contract sentence vector z(X j ) is remapped, where the mapping formula is:

[0144]

[0145] Where: z * (X j ) represents the electronic contract sentence vector z(X j ) remapping result; for any task content sentence vector of the mth electronic contract task content, obtain the neighborhood vector in the task content sentence vector set of the mth electronic contract task content, and construct the objective function for solving the task content sentence vector remapping matrix to solve the remapping parameters, and then construct the remapping matrix, remap the task content sentence vector based on the remapping matrix, and obtain the remapping result, then z(Y m The remapping result of (u)) is z * (Y m (u));

[0146] Construct the manifold electronic contract vector and manifold task content vector:

[0147] f(X)=(z * (X1),z * (X2),...,z * (X j ),...,z * (X Sum(X) ))

[0148] f(Y m )=(z * (Y m (1)),z * (Y m (2)),...,z * (Y m (u)),...,z * (Y m (Sum(Y m ))))

[0149] Where: f(X) represents the manifold electronic contract vector, f(Y m) represents the manifold task content vector of the mth electronic contract task content. This solution constructs an electronic contract sentence vector remapping matrix and a task content sentence vector remapping matrix for remapping the encoding results respectively. By combining the correlation between sentence vectors, the semantics of the neighborhood sentence vectors are added to each sentence vector without changing the semantics of the sentence vector itself, so that each sentence vector after remapping can represent the semantic information of itself and the neighborhood. Then, the manifold electronic contract vector and the manifold task content vector are decomposed respectively by combining the feature decomposition method, and the feature vector matrix is ​​obtained to realize the task content recognition of the electronic contract vector. According to the task content recognition results, the electronic contract text data to be assigned is assigned tasks, which promotes the rapid understanding and implementation of the electronic contract content and improves the efficiency of task assignment. BRIEF DESCRIPTION OF THE DRAWINGS

[0150] Figure 1 A flowchart of a method for assigning electronic contract tasks based on deep semantic analysis provided by one embodiment of the present invention;

[0151] Figure 2 A schematic diagram of the structure of an electronic device for implementing an electronic contract task assignment method for deep semantic analysis provided by an embodiment of the present invention.

[0152] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0153] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.

[0154] The embodiment of the present application provides a method for dispatching tasks of electronic contracts with deep semantic analysis. The execution subject of the method for dispatching tasks of electronic contracts with deep semantic analysis includes but is not limited to at least one of the electronic devices such as a server and a terminal that can be configured to execute the method provided by the embodiment of the present application. In other words, the method for dispatching tasks of electronic contracts with deep semantic analysis can be executed by software or hardware installed on a terminal device or a server device, and the software can be a blockchain platform. The server includes but is not limited to: a single server, a server cluster, a cloud server or a cloud server cluster, etc.

[0155] Embodiment 1:

[0156] S1: Acquire the electronic contract text data to be assigned, and generate text data of various task contents, respectively encode the electronic contract text data and the task content text data to obtain the electronic contract vector and the task content vector.

[0157] In the step S1, the electronic contract text data to be assigned is obtained, and text data of various task contents are generated, including:

[0158] Get the electronic contract text to be assigned and perform word segmentation to obtain the electronic contract text data to be assigned:

[0159] X=(x1,x2,...,x n ,...,x N )

[0160] in:

[0161] X represents the electronic contract text data to be assigned, n represents the nth word segmentation result in the electronic contract text data X, and N represents the total number of word segmentation results obtained by word segmentation processing of the electronic contract text;

[0162] The word segmentation process of any contract text in the electronic contract text is as follows:

[0163] Pre-build a dictionary of commonly used words in the contract text, intercept the first s text characters in the contract text and compare and match them with the common words in the dictionary of commonly used words in the contract text, if the match fails, intercept the first s-1 text characters in the contract text and compare and match them with the common words in the dictionary of commonly used words in the contract text, and so on, until the match is successful or only one text character is left in the contract text, take the successfully matched contract text character as the successful matching word segmentation result, delete the word segmentation result before the sentence of the contract text, and re-perform the common word comparison and matching;

[0164] Generate text data for various tasks:

[0165]

[0166] in:

[0167] Text data representing the content of the mth electronic contract task, Represents Y m The mth content description word in , M represents the number of types of electronic contract task content generated, and K represents the total number of content description words for each type of electronic contract task content generated. In the embodiment of the present invention, the punctuation mark in the text data is also a segmentation result or a content description word, and the punctuation mark is encoded using the [CLS] symbol.

[0168] In the step S1, the electronic contract text data and the task content text data are respectively encoded, including:

[0169] The electronic contract text data and the task content text data are encoded respectively to obtain the electronic contract vector and the task content vector, wherein the encoding process of the text data is as follows:

[0170] S11: Perform one-hot encoding on any word segmentation results in the electronic contract text data and content description words in the task content text data to obtain one-hot encoding results of any word segmentation results and content description words;

[0171] S12: Assign the word segmentation results and content description words to corresponding sentences according to the punctuation marks in the text data, and perform weight calculation on the word segmentation results:

[0172]

[0173] in:

[0174] w(x n ) represents the word segmentation result x n The weight of

[0175] exp(·) represents an exponential function with a natural constant as the base;

[0176] L(x n ) represents the word segmentation result x n The total number of word segmentation results in the sentence to which it belongs, loc(x n ) represents the word segmentation result x n The position in the sentence, i.e. the segmentation result x n is the loc(x)th sentence of the sentence n ) word segmentation results;

[0177] count(x n ) represents the word segmentation result x n The number of times it appears in the electronic contract text data X;

[0178] Sum(X) represents the number of sentences in the electronic contract text data X, Sum(X,x n ) indicates that the word segmentation result x appears in the electronic contract text data X n Number of sentences;

[0179] And set the weight of content description words to 1;

[0180] S13: Based on the word segmentation results and the weights of the content description words, the word segmentation results and the one-hot encoding representation results of the content description words are re-encoded:

[0181]

[0182]

[0183] in:

[0184] z(x n ) represents the word segmentation result x n The re-encoding result is Content description words The re-encoding result;

[0185] w(x n ) represents the word segmentation result x n The weight of Content description words The weight of

[0186] W X Represents the preset word segmentation result recoding matrix parameters, W Y Represents the preset content description vocabulary recoding matrix parameters;

[0187] σ1(·),σ2(·) represent activation functions, where σ1(·) is the ReLU activation function and σ2(·) is the Sigmoid activation function;

[0188] The punctuation marks were not re-encoded.

[0189] S14: Based on the re-encoding processing results, an electronic contract vector and a task content vector are respectively constructed:

[0190] z(X)=(z(x1),z(x2),...,z(x n ),...,z(x N ))

[0191]

[0192] in:

[0193] z(X) represents the electronic contract vector;

[0194] z(Y m )The task content vector of the mth electronic contract task content.

[0195] S2: Remap the electronic contract vector and task content vector obtained by encoding processing to obtain a manifold electronic contract vector and a manifold task content vector respectively.

[0196] In the step S2, the electronic contract vector and the task content vector obtained by the encoding process are remapped respectively, including:

[0197] The electronic contract vector and task content vector obtained by encoding are remapped respectively, and the remapping process is as follows:

[0198] S21: Split the electronic contract vector and the task content vector into sentence vectors respectively, and obtain the electronic contract sentence vector set and the task content sentence vector set:

[0199]

[0200]

[0201] in:

[0202] represents the electronic contract sentence vector set, Sum(X) represents the number of sentences in the electronic contract text data X, z(X j ) represents the sentence vector of the j-th sentence text data in the electronic contract text data X;

[0203] Indicates the jth sentence in the jth text data num The re-encoding result of word segmentation results, j num represents the number of word segmentation results in the jth sentence of the electronic contract text data X;

[0204] The task content sentence vector set representing the mth electronic contract task content, z(Y m (u)) represents the sentence vector of the u-th sentence text data in the m-th electronic contract task content, Sum(Y m ) represents the number of sentences in the mth type of electronic contract task content;

[0205] Indicates the mth sentence in the jth sentence text data num The re-encoding results of (u) content description words, m num (u) represents the number of content description words in the jth sentence of text data;

[0206] S22: For any electronic contract sentence vector z(X j ), and calculate the electronic contract sentence vector z(X j ) and other electronic contract sentence vectors z(X s )’s vector distance:

[0207] dis(z(X j ),z(X s ))=||z(X j )―z(X s )||2

[0208] in:

[0209] dis(z(X j ),z(Xs )) represents the electronic contract sentence vector z(X j ) and the electronic contract sentence vector z(X s ) vector distance, s∈

[0210] [1,Sum(X)],s≠j;

[0211] ||·||2 represents the L2 norm;

[0212] Select the vector closest to j num The electronic contract sentence vector is used as the electronic contract sentence vector z(X j )’s neighborhood vector;

[0213] S23: Construct the objective function for solving the vector remapping matrix of the electronic contract sentence:

[0214]

[0215]

[0216] in:

[0217] Ω j (X) represents the electronic contract sentence vector z(X j ), c represents any electronic contract sentence vector in the neighborhood vector set;

[0218] W(j,c) represents the electronic contract sentence vector z(X j ) and the remapping parameters of the electronic contract sentence vector c;

[0219] ||·|| represents the L1 norm;

[0220] The Lagrange multiplier method is used to solve the objective function and obtain the electronic contract sentence vector z(X j )’s remapping matrix W(j):

[0221] W(j)=[W(j,1),W(j,2),...,W(j,c),...,W(j,j num )]

[0222] Based on the remapping matrix, the electronic contract sentence vector z(X j ) is remapped, where the mapping formula is:

[0223]

[0224] in:

[0225] z * (X j ) represents the electronic contract sentence vector z(X j)’s remapping result;

[0226] Repeat steps S22-S23 to obtain the remapping results of all electronic contract sentence vectors in the electronic contract sentence vector set;

[0227] S24: For any task content sentence vector of the mth electronic contract task content, obtain a neighborhood vector in the task content sentence vector set of the mth electronic contract task content, and construct an objective function for solving the task content sentence vector remapping matrix to solve the remapping parameters, and then construct a remapping matrix, remap the task content sentence vector based on the remapping matrix, and obtain the remapping result, then z(Y m The remapping result of (u)) is z * (Y m (u));

[0228] S25: Construct the manifold electronic contract vector and the manifold task content vector:

[0229] f(X)=(z * (X1),z * (X2),...,z * (X j ),...,z * (X Sum(X) ))

[0230] f(Y m )=(z * (Y m (1)),z * (Y m (2)),...,z * (Y m (u)),...,z * (Y m (Sum(Y m ))))

[0231] in:

[0232] f(X) represents the manifold electronic contract vector;

[0233] f(Y m ) represents the manifold task content vector of the mth type of electronic contract task content.

[0234] S3: Construct an electronic contract task content recognition model, wherein the electronic contract task content recognition model takes a manifold electronic contract vector and a manifold task content vector as input, and takes the task content corresponding to the manifold electronic contract vector as output.

[0235] The electronic contract task content recognition model is constructed in step S3, including:

[0236] Constructing an electronic contract task content recognition model, wherein the electronic contract task content recognition model takes a manifold electronic contract vector and a manifold task content vector as input and takes the task content corresponding to the manifold electronic contract vector as output;

[0237] The electronic contract task content recognition model includes an input layer, a semantic association layer and an output layer. The input layer is used to receive the manifold electronic contract vector of the electronic contract to be assigned and the manifold task content vector of all task contents, and perform feature decomposition processing on the input results. The semantic association layer is used to calculate the degree of semantic association between the manifold electronic contract vector and any manifold content vector, and select the task content corresponding to the manifold content vector with the highest semantic association for output. The output result is the task content recognition result corresponding to the electronic contract to be assigned.

[0238] The training process of the electronic contract task content recognition model in step S3 includes:

[0239] Get D groups of manifold electronic contract vectors and corresponding manifold task content vectors to form the training data set data:

[0240] data={(G d ,F d )|d∈[1,D]}

[0241] in:

[0242] G d represents the electronic contract vector of the dth group of manifolds obtained, F d is the manifold electronic contract vector G d The corresponding manifold task content vector; in the embodiment of the present invention, the manifold task content vector F d The corresponding electronic contract task content is used to describe the manifold electronic contract vector G d The corresponding electronic contract;

[0243] The training process of the electronic contract task content recognition model based on the training data set data is as follows:

[0244] S31: Construct the training objective function Loss(H,W) of the electronic contract task content recognition model:

[0245]

[0246] in:

[0247] Indicates G d Perform eigendecomposition to obtain the eigenvector matrix corresponding to the H eigenvectors obtained by decomposition;

[0248] Indicates Fd Perform eigendecomposition to obtain the eigenvector matrix corresponding to the H eigenvectors obtained by decomposition;

[0249] W represents the mapping parameter to be optimized, and H represents the number of eigenvector decompositions to be optimized;

[0250] Sim(·) represents the cosine similarity algorithm;

[0251] Indicates that the selection makes The largest eigenvector matrix

[0252] S32: Initialize mapping parameters W 0 , set the optimization times of the current mapping parameter to t, the initial value of t is 0, the maximum value is Max, then the mapping parameter obtained by the tth optimization is W t ;

[0253] S33: Use the Adam optimization algorithm to solve the mapping parameters in the training objective function, and the solution is W * , and based on the mapping parameter W * An electronic contract task content recognition model is constructed.

[0254] S4: Use the electronic contract task content recognition model to perform task content recognition on the manifold electronic contract vector of the electronic contract text data to be assigned, and assign tasks to the electronic contract text data to be assigned based on the task content recognition results.

[0255] In the step S4, the electronic contract task content recognition model is used to perform task content recognition on the manifold electronic contract vector of the electronic contract text data to be assigned, including:

[0256] The electronic contract task content recognition model is used to perform task content recognition on the manifold electronic contract vector f(X) to be assigned electronic contract text data, where the task content recognition process is as follows:

[0257] S41: The input layer performs eigendecomposition on the manifold electronic contract vector f(X) and the manifold task content vectors corresponding to the M types of electronic contract task contents, decomposing them to obtain H eigenvalues ​​and corresponding eigenvectors, and constructing the eigenvector matrix from the H eigenvectors. The eigenvector matrix of the manifold electronic contract vector f(X) is Q(X), and the eigenvector matrix of the manifold task content vector f(Y m ) corresponds to the eigenvector matrix Q(Y m );

[0258] S42: The semantic association layer performs feature mapping on the feature vector matrix Q(X), where the feature mapping formula is:

[0259] Q′(X)=W * Q(X)

[0260] in:

[0261] W * Represents mapping parameters in the semantic association layer;

[0262] Q′(X) represents the feature mapping result of the feature vector matrix Q(X);

[0263] Calculate the cosine similarity between the feature mapping result Q′(X) and the feature vector matrix corresponding to any manifold task content vector, and use the cosine similarity calculation result as the semantic association degree between the manifold electronic contract vector f(X) and the corresponding manifold task content vector;

[0264] S43: Selecting and outputting the task content corresponding to the manifold content vector with the highest semantic association, the output result is the task content recognition result corresponding to the electronic contract to be assigned;

[0265] Electronic contract tasks are assigned based on the results of task content identification.

[0266] Embodiment 2:

[0267] like Figure 2 , is a schematic diagram of the structure of an electronic device for implementing an electronic contract task assignment method for implementing deep semantic analysis provided by an embodiment of the present invention.

[0268] The electronic device 1 may include a processor 10 , a memory 11 , a communication interface 13 and a bus, and may also include a computer program stored in the memory 11 and executable on the processor 10 , such as a program 12 .

[0269] The memory 11 includes at least one type of readable storage medium, and the readable storage medium includes a flash memory, a mobile hard disk, a multimedia card, a card-type memory (e.g., SD or DX memory, etc.), a magnetic memory, a disk, an optical disk, etc. The memory 11 may be an internal storage unit of the electronic device 1 in some embodiments, such as a mobile hard disk of the electronic device 1. The memory 11 may also be an external storage device of the electronic device 1 in other embodiments, such as a plug-in mobile hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the electronic device 1. Further, the memory 11 may also include both an internal storage unit of the electronic device 1 and an external storage device. The memory 11 may be used not only to store application software and various types of data installed in the electronic device 1, such as the code of the program 12, etc., but also to temporarily store data that has been output or is to be output.

[0270] The processor 10 may be composed of an integrated circuit in some embodiments, for example, a single packaged integrated circuit, or a plurality of packaged integrated circuits with the same or different functions, including one or more central processing units (CPUs), microprocessors, digital processing chips, graphics processors, and combinations of various control chips, etc. The processor 10 is the control core (Control Unit) of the electronic device, and uses various interfaces and lines to connect the various components of the entire electronic device, and executes or executes the programs or modules stored in the memory 11 (such as the program 12 for electronic contract task assignment for deep semantic analysis), and calls the data stored in the memory 11 to execute various functions of the electronic device 1 and process data.

[0271] The communication interface 13 may include a wired interface and / or a wireless interface (such as a WI-FI interface, a Bluetooth interface, etc.), which is generally used to establish a communication connection between the electronic device 1 and other electronic devices, and to achieve connection and communication between internal components of the electronic device.

[0272] The bus may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. The bus is configured to realize connection and communication between the memory 11 and at least one processor 10, etc.

[0273] Figure 2 Only an electronic device with components is shown, and those skilled in the art will understand that Figure 2 The structure shown does not constitute a limitation on the electronic device 1, and may include fewer or more components than shown in the figure, or combine certain components, or arrange the components differently.

[0274] For example, although not shown, the electronic device 1 may also include a power source (such as a battery) for supplying power to each component. Preferably, the power source may be logically connected to the at least one processor 10 through a power management device, so that the power management device can realize functions such as charging management, discharging management, and power consumption management. The power source may also include any components such as one or more DC or AC power sources, recharging devices, power failure detection circuits, power converters or inverters, power status indicators, etc. The electronic device 1 may also include a variety of sensors, Bluetooth modules, Wi-Fi modules, etc., which will not be repeated here.

[0275] Optionally, the electronic device 1 may further include a user interface, which may be a display, an input unit (such as a keyboard), or a standard wired interface or a wireless interface. Optionally, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, and an OLED (Organic Light-Emitting Diode) touch device. The display may also be appropriately referred to as a display screen or a display unit, which is used to display information processed in the electronic device 1 and to display a visual user interface.

[0276] It should be understood that the embodiment is for illustration only and the scope of the patent application is not limited to this structure.

[0277] The program 12 stored in the memory 11 in the electronic device 1 is a combination of multiple instructions. When running in the processor 10, it can achieve:

[0278] Acquire the electronic contract text data to be assigned, generate text data of multiple task contents, encode the electronic contract text data and the task content text data respectively, and obtain the electronic contract vector and the task content vector;

[0279] Re-mapping the electronic contract vector and the task content vector obtained by encoding to obtain a manifold electronic contract vector and a manifold task content vector;

[0280] Constructing an electronic contract task content recognition model;

[0281] The electronic contract task content recognition model is used to perform task content recognition on the manifold electronic contract vector of the electronic contract text data to be assigned, and tasks are assigned to the electronic contract text data to be assigned according to the task content recognition result.

[0282] Specifically, the specific implementation method of the processor 10 for the above instructions can refer to Figure 1 to Figure 2 The description of the relevant steps in the corresponding embodiments will not be repeated here.

[0283] It should be noted that the serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages and disadvantages of the embodiments. And the terms "including", "comprising" or any other variants thereof in this article are intended to cover non-exclusive inclusion, so that a process, device, article or method including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, device, article or method. In the absence of further restrictions, an element defined by the sentence "including a ..." does not exclude the presence of other identical elements in the process, device, article or method including the element.

[0284] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution 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 is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above, and includes a number of instructions for a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present invention.

[0285] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.

Claims

1. A method for assigning electronic contract tasks based on deep semantic analysis, characterized in that: The method comprises: S1: obtaining electronic contract text data to be assigned, and generating text data of various task contents, respectively encoding the electronic contract text data and the task content text data to obtain an electronic contract vector and a task content vector; Get the electronic contract text to be assigned and perform word segmentation to obtain the electronic contract text data to be assigned: X=(x1,x2,…,x n ,…,x N ) in: X represents the electronic contract text data to be assigned, n represents the nth word segmentation result in the electronic contract text data X, and N represents the total number of word segmentation results obtained by word segmentation processing of the electronic contract text; The word segmentation process of any contract text in the electronic contract text is as follows: Pre-build a dictionary of commonly used words in the contract text, intercept the first s text characters in the contract text and compare and match them with the common words in the dictionary of commonly used words in the contract text, if the match fails, intercept the first s-1 text characters in the contract text and compare and match them with the common words in the dictionary of commonly used words in the contract text, and so on, until the match is successful or only one text character is left in the contract text, take the successfully matched contract text character as the successful matching word segmentation result, delete the word segmentation result before the sentence of the contract text, and re-perform the common word comparison and matching; Generate text data for various tasks: in: Text data representing the content of the mth electronic contract task, Represents Y m The mth content description word in , M represents the number of types of electronic contract task content generated, and K represents the total number of content description words for each type of electronic contract task content generated; The encoding process of text data is as follows: S11: Perform one-hot encoding on any word segmentation results in the electronic contract text data and content description words in the task content text data to obtain one-hot encoding results of any word segmentation results and content description words; S12: Assign the word segmentation results and content description words to corresponding sentences according to the punctuation marks in the text data, and perform weight calculation on the word segmentation results: in: w(x n ) represents the word segmentation result x n The weight of exp(·) represents an exponential function with a natural constant as the base; L(x n ) represents the word segmentation result x n The total number of word segmentation results in the sentence to which it belongs, loc(x n ) represents the word segmentation result x n The position in the sentence, i.e. the segmentation result x n is the loc(x)th sentence of the sentence n ) word segmentation results; count(x n ) represents the word segmentation result x n The number of times it appears in the electronic contract text data X; Sum(X) represents the number of sentences in the electronic contract text data X, Sum(X,x n ) indicates that the word segmentation result x appears in the electronic contract text data X n The number of sentences; And set the weight of content description words to 1; S13: Based on the word segmentation results and the weights of the content description words, the word segmentation results and the one-hot encoding representation results of the content description words are re-encoded: in: z(x n ) represents the word segmentation result x n The re-encoding result is Content description words The re-encoding result; w(x n ) represents the word segmentation result x n The weight of Content description words The weight of W X Represents the preset word segmentation result recoding matrix parameters, W Y Represents the preset content description vocabulary recoding matrix parameters; σ1(·),σ2(·) represent activation functions, where σ1(·) is the ReLU activation function and σ2(·) is the Sigmoid activation function; The punctuation marks were not re-encoded. S14: Based on the re-encoding processing results, an electronic contract vector and a task content vector are respectively constructed: z(X)=(z(x1),z(x2),…,z(x n ),…,z(x N )) in: z(X) represents the electronic contract vector; z(Y m ) the task content vector of the mth electronic contract task content; S2: remap the electronic contract vector and the task content vector obtained by the encoding process to obtain a manifold electronic contract vector and a manifold task content vector respectively; The remapping process is: S21: Split the electronic contract vector and the task content vector into sentence vectors respectively, and obtain the electronic contract sentence vector set and the task content sentence vector set: in: represents the electronic contract sentence vector set, Sum(X) represents the number of sentences in the electronic contract text data X, z(X j ) represents the sentence vector of the j-th sentence text data in the electronic contract text data X; Indicates the jth sentence in the jth text data num The re-encoding result of word segmentation results, j num represents the number of word segmentation results in the jth sentence of the electronic contract text data X; The task content sentence vector set representing the mth electronic contract task content, z(Y m (u)) represents the sentence vector of the u-th sentence text data in the m-th electronic contract task content, Sum(Y m ) represents the number of sentences in the mth type of electronic contract task content; Indicates the mth sentence in the jth sentence text data num The re-encoding results of (u) content description words, m num (u) represents the number of content description words in the jth sentence of text data; S22: For any electronic contract sentence vector z(X j ), and calculate the electronic contract sentence vector z(X j ) and other electronic contract sentence vectors z(X s )’s vector distance: dis(z(X j ),z(X s ))=||z(X j )-z(X s )||2 in: dis(z(X j ),z(X s )) represents the electronic contract sentence vector z(X j ) and the electronic contract sentence vector z(X s ), s∈[1,Sum(X)],s≠j; ||·||2 represents the L2 norm; Select the vector closest to j num The electronic contract sentence vector is used as the electronic contract sentence vector z(X j )’s neighborhood vector; S23: Construct the objective function for solving the vector remapping matrix of the electronic contract sentence: in: Ω j (X) represents the electronic contract sentence vector z(X j ), c represents any electronic contract sentence vector in the neighborhood vector set; W(j,c) represents the electronic contract sentence vector z(X j ) and the remapping parameters of the electronic contract sentence vector c; ||·|| represents the L1 norm; The Lagrange multiplier method is used to solve the objective function and obtain the electronic contract sentence vector z(X j )’s remapping matrix W(j): W(j)=[W(j,1),W(j,2),...,W(j,c),...,W(j,j num )] Based on the remapping matrix, the electronic contract sentence vector z(X j ) is remapped, where the mapping formula is: in: z * (X j ) represents the electronic contract sentence vector z(X j )’s remapping result; Repeat steps S22-S23 to obtain the remapping results of all electronic contract sentence vectors in the electronic contract sentence vector set; S24: For any task content sentence vector of the mth electronic contract task content, obtain a neighborhood vector in the task content sentence vector set of the mth electronic contract task content, and construct an objective function for solving the task content sentence vector remapping matrix to solve the remapping parameters, and then construct a remapping matrix, remap the task content sentence vector based on the remapping matrix, and obtain the remapping result, then z(Y m The remapping result of (u)) is z * (Y m (u)); S25: Construct the manifold electronic contract vector and the manifold task content vector: f(X)=(z * (X1),z * (X2),…,z * (X j ),…,z * (X Sum(X) )) f(Y m )=(z * (Y m (1)),z * (Y m (2)),...,z * (Y m (u)),...,z * (Y m (Sum(Y m )))) in: f(X) represents the manifold electronic contract vector; f(Y m ) represents the manifold task content vector of the mth electronic contract task content; S3: constructing an electronic contract task content recognition model, wherein the electronic contract task content recognition model takes a manifold electronic contract vector and a manifold task content vector as input, and takes the task content corresponding to the manifold electronic contract vector as output; S4: Use the electronic contract task content recognition model to perform task content recognition on the manifold electronic contract vector of the electronic contract text data to be assigned, and assign tasks to the electronic contract text data to be assigned based on the task content recognition results.

2. The method for assigning electronic contract tasks based on deep semantic analysis as claimed in claim 1, characterized in that: The electronic contract task content recognition model is constructed in step S3, including: Constructing an electronic contract task content recognition model, wherein the electronic contract task content recognition model takes a manifold electronic contract vector and a manifold task content vector as input and takes the task content corresponding to the manifold electronic contract vector as output; The electronic contract task content recognition model includes an input layer, a semantic association layer and an output layer. The input layer is used to receive the manifold electronic contract vector of the electronic contract to be assigned and the manifold task content vector of all task contents, and perform feature decomposition processing on the input results. The semantic association layer is used to calculate the degree of semantic association between the manifold electronic contract vector and any manifold content vector, and select the task content corresponding to the manifold content vector with the highest semantic association for output. The output result is the task content recognition result corresponding to the electronic contract to be assigned.

3. The method for assigning electronic contract tasks based on deep semantic analysis as claimed in claim 2, characterized in that: The training process of the electronic contract task content recognition model in step S3 includes: Get D groups of manifold electronic contract vectors and corresponding manifold task content vectors to form the training data set data: data={(G d ,F d )|d∈[1,D]} in: G d represents the electronic contract vector of the dth group of manifolds obtained, F d is the manifold electronic contract vector G d The corresponding manifold task content vector; The training process of the electronic contract task content recognition model based on the training data set data is as follows: S31: Construct the training objective function Loss(H,W) of the electronic contract task content recognition model: in: Indicates G d Perform eigendecomposition to obtain the eigenvector matrix corresponding to the H eigenvectors obtained by decomposition; Indicates F d Perform eigendecomposition to obtain the eigenvector matrix corresponding to the H eigenvectors obtained by decomposition; W represents the mapping parameter to be optimized, and H represents the number of eigenvector decompositions to be optimized; Sim(·) represents the cosine similarity algorithm; Indicates that the selection makes The largest eigenvector matrix S32: Initialize mapping parameters W 0 , set the optimization times of the current mapping parameter to t, the initial value of t is 0, and the maximum value is Max, then the mapping parameter obtained by the tth optimization is W t ; S33: Use the Adam optimization algorithm to solve the mapping parameters in the training objective function, and the solution is W * , and based on the mapping parameter W * An electronic contract task content recognition model is constructed.

4. The method for assigning electronic contract tasks based on deep semantic analysis as claimed in claim 3, characterized in that: In the step S4, the electronic contract task content recognition model is used to perform task content recognition on the manifold electronic contract vector of the electronic contract text data to be assigned, including: The electronic contract task content recognition model is used to perform task content recognition on the manifold electronic contract vector f(X) to be assigned electronic contract text data, where the task content recognition process is as follows: S41: The input layer performs eigendecomposition on the manifold electronic contract vector f(X) and the manifold task content vectors corresponding to the M types of electronic contract task contents, decomposing them to obtain H eigenvalues ​​and corresponding eigenvectors, and constructing the eigenvector matrix from the H eigenvectors. The eigenvector matrix of the manifold electronic contract vector f(X) is Q(X), and the eigenvector matrix of the manifold task content vector f(Y m ) corresponds to the eigenvector matrix Q(Y m ); S42: The semantic association layer performs feature mapping on the feature vector matrix Q(X), where the feature mapping formula is: Q′(X)=W * Q(X) in: W * Represents mapping parameters in the semantic association layer; Q'(X) represents the feature mapping result of the feature vector matrix Q(X); Calculate the cosine similarity between the feature mapping result Q'(X) and the feature vector matrix corresponding to any manifold task content vector, and use the cosine similarity calculation result as the semantic association degree between the manifold electronic contract vector f(X) and the corresponding manifold task content vector; S43: Selecting and outputting the task content corresponding to the manifold content vector with the highest semantic association, the output result is the task content recognition result corresponding to the electronic contract to be assigned; Electronic contract tasks are assigned based on the results of task content identification.