The invention discloses a two-stage few-sample automatic fact checking method,
electronic equipment and a storage medium, and belongs to the technical field of
information processing. In order to improve the accuracy and efficiency of information
verification, the method comprises the following steps: selecting a public fact
verification data set to construct a
test set; constructing an evidence retrieval model, and retrieving the documents of the
test set by adopting the evidence retrieval model to obtain candidate documents; constructing a
sentence selection model, inputting each
sentence in the candidate document and the statement into a prompt template to be combined into the input of the
sentence selection model, and outputting the correlation
score of the sentences as an evidence sentence for statement
verification; constructing a pre-training
language model and finely adjusting the pre-training
language model; and inputting an evidence sentence for statement verification and a statement to be verified into a prompt template to be combined into input of a pre-training
language model, inputting the input into the pre-training language model after
fine tuning to obtain
natural language output, then mapping the
natural language output to a classification
label, and calculating a
prediction score according to the generation probability of an output sequence to obtain a final prediction result.