-
1.
公开(公告)号:US20210406467A1
公开(公告)日:2021-12-30
申请号:US16951000
申请日:2020-11-18
IPC: G06F40/279 , G06F40/35 , G06N20/00
Abstract: A method and apparatus for generating a triple sample, an electronic device and a storage medium are disclosed, which relates to the field of natural language processing technologies based on artificial intelligence and the field of deep learning technologies. An implementation includes acquiring a paragraph text in the triple sample; extracting at least one answer fragment from the paragraph text; and generating corresponding questions by adopting a pre-trained question generating model based on the paragraph text and each answer fragment respectively, so as to obtain the triple sample. In the present application, since trained based on a pre-trained semantic representation model, the pre-trained question generating model has quite good accuracy, and therefore, the triple sample (Q, P, A) generated with the question generating model has quite high accuracy.