Research Article
Ptr4BERT: Automatic Semisupervised Chinese Government Message Text Classification Method Based on Transformer-Based Pointer Generator Network
Algorithm 1
Semisupervised algorithm based on BERT.
| Input: labeled training set , unlabeled training set , test set | | Output: | (1) | ; | (2) | ; | (3) | for do | (4) | Training the model with labeled data; | (5) | Calculate the sentence vector; | (6) | for do | (7) | ; | (8) | Predicting the label of ; | (9) | ; | (10) | end | (11) | end | (12) | ; | (13) | ; | (14) | Return Y; |
|