Dynamic mask training method in Chinese automatic grammar error correction
A training method and mask technology, applied in the field of dynamic mask training of neural network models, can solve the problems of expensive manpower and material resources, poor performance, limiting the performance of neural network models, etc., so as to enhance the generalization ability and increase the richness. Effect
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0023] Below by example the present invention will be further described.
[0024] refer to figure 2 , assuming a parallel corpus S of tagged sentences X containing grammatical errors and corresponding corrected sentences Y. In the tth round of model Θ training, let the training set of the current round be S (t) , for each (X, Y) sentence pair in S, the dynamic noise adding module selects the current replacement method f. If the replacement mode is the four replacement modes of blank, random, word frequency, and homonym, the replacement method when adding noise is fixed to the corresponding mode; Randomly determine the current replacement method among the modes in . Apply the replacement method f to X to get noise sentence pairs Source sentence after dynamic masking As shown in the following formula:
[0025]
[0026] where m is the length of the source sentence X.
[0027] The i-th word of is given by:
[0028]
[0029] where p is a random value sampled from...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


