Research Article

An Entity Relation Extraction Method for Few-Shot Learning on the Food Health and Safety Domain

Table 4

Detailed parameters of the experiment.

ModelConstruction and outputTraining hyperparameters

Text noise removal classifierInput
BERT character
Bi-LSTM layer  8
CRF
Batch size: 128
Learning rate: 0.001
Epochs: 100
Loss function: negative log-likelihood
Update strategy: Adam

Feature enhancementInput
Convert function
BERT character

Chars and words fusionInput
BERT words
Combine function sigmoid × 2
Batch size: 128
Learning rate: 0.001
Epochs: 200
Loss function: binary cross-entropy