IP Library Granted Patent US 12,579,365
Granted Patent B2
US 12,579,365 · App. 18/567,634 · Granted Mar 17, 2026

Information acquisition method and apparatus, device, and medium

Inventors: Yijun Wang (Beijing, CN); Changzhi Sun (Beijing, CN); Hao Zhou (Beijing, CN); Lei Li (Beijing, CN)
Assignee: BEIJING YOUZHUJU NETWORK TECHNOLOGY CO., LTD.
G06F40/295G06F16/35
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 12,579,365
App. No.
18/567,634
Granted
Mar 17, 2026
Kind
B2
Abstract

The present disclosure relates to an information obtaining method and apparatus, a device, and a medium. The method includes setting a label table corresponding to each sample sentence in a sample set, wherein row characters and column characters in the label table are set identically in accordance with an order of characters of the corresponding sample sentence; and marking cells composed of the row characters and the column characters in the label table with corresponding information category labels; taking each sample sentence in the sample set as input information to a model to be trained and the label table corresponding to each sample sentence as output information of the model to be trained, and performing model training according to a preset target function; and generating an information extraction model based on parameters of the trained model to extract target sentence information by the information extraction model.

Claims (69)

1 . An information obtaining method, comprising:

setting a label table corresponding to each sample sentence in a sample set, wherein row characters and column characters in the label table are set identically in accordance with an order of characters of the corresponding sample sentence;

marking cells composed of the row characters and the column characters in the label table as having or not having entity category labels or relationship category labels;

taking each sample sentence in the sample set as input information to a model to be trained and the label table corresponding to each sample sentence as output information of the model to be trained, and performing model training according to a preset target function;

processing characters of target sentence according to an entity relationship extraction model to generate a target label table corresponding to the target sentence, wherein the target label table comprises predicted scores corresponding to the cells composed of the row characters and the column characters;

calculating the predicted scores corresponding to the cells composed of the row characters and the column characters in the target label table to determine segmentation positions related to the entity category labels in the target label table;

determining whether the predicted scores for the cells in a diagonal line in the target label table meet the entity category labels according to the segmentation positions, and if yes, marking with the corresponding entity category labels;

determining whether the predicted scores for the cells not in the diagonal line in the target label table meet the relationship category labels according to the segmentation positions, and if yes, marking with the corresponding relationship category labels; and

generating entities of the target sentence and a relationship between entities of the target sentence according to the entity category labels and the relationship category labels marked in the target label table.

2 . The information obtaining method according to claim 1 , further comprising:

if the sample sentence is an English sentence, identically setting the row characters and the column characters of the label table in accordance with an order of words of the corresponding English sentence; and

if the sample sentence is a Chinese sentence, identically setting the row characters and the column characters of the label table in accordance with the order of characters of the corresponding Chinese sentence.

3 . The information obtaining method according to claim 1 , wherein the marking the cells composed of the row characters and the column characters in the label table as having or not having the entity category labels or the relationship category labels comprises:

marking the cells composed of the row characters and the column characters in the diagonal line of the label table as having or not having the entity category labels; and

marking the cells composed of the row characters and the column characters not in the diagonal line of the label table as having or not having the relationship category labels, wherein the relationship category labels are distributed symmetrically or asymmetrically about the diagonal line of the label table.

4 . The information obtaining method according to claim 1 , wherein the preset target function corresponding to the entity relationship extraction model comprises a first loss function which is determined by:

determining a label classification probability representing the entity category label or the relationship category label corresponding to each cell in the label table corresponding to each sample sentence according to a biaffine classification algorithm; and

calculating the label classification probability representing the entity category label or the relationship category label corresponding to each cell to determine the first loss function.

5 . The information obtaining method according to claim 4 , wherein the preset target function corresponding to the entity relationship extraction model comprises a second loss function which is determined by:

calculating entity category label probabilities in the diagonal line of the label table and relationship category label probabilities distributed symmetrically about the diagonal line to determine the second loss function.

6 . The information obtaining method according to claim 5 , wherein the preset target function corresponding to the entity relationship extraction model comprises a third loss function which is determined by:

calculating entity category label probabilities in the diagonal line of the label table according to a preset algorithm to determine the third loss function.

7 . An electronic device, comprising:

a processor; and

a memory configured to store instructions executable by the processor,

wherein the processor is configured to read the executable instructions from the memory and execute the instructions to implement an information obtaining method, wherein the method comprises:

setting a label table corresponding to each sample sentence in a sample set, wherein row characters and column characters in the label table are set identically in accordance with an order of characters of the corresponding sample sentence;

marking cells composed of the row characters and the column characters in the label table as having or not having entity category labels or relationship category labels;

taking each sample sentence in the sample set as input information to a model to be trained and the label table corresponding to each sample sentence as output information of the model to be trained, and performing model training according to a preset target function;

processing characters of target sentence according to an entity relationship extraction model to generate a target label table corresponding to the target sentence, wherein the target label table comprises predicted scores corresponding to the cells composed of the row characters and the column characters;

calculating the predicted scores corresponding to the cells composed of the row characters and the column characters in the target label table to determine segmentation positions related to the entity category labels in the target label table;

determining whether the predicted scores for the cells in a diagonal line in the target label table meet the entity category labels according to the segmentation positions, and if yes, marking with the corresponding entity category labels;

determining whether the predicted scores for the cells not in the diagonal line in the target label table meet the relationship category labels according to the segmentation positions, and if yes, marking with the corresponding relationship category labels; and

generating entities of the target sentence and a relationship between entities of the target sentence according to the entity category labels and the relationship category labels marked in the target label table.

8 . The electronic device according to claim 7 , wherein the method further comprises:

if the sample sentence is an English sentence, identically setting the row characters and the column characters of the label table in accordance with an order of words of the corresponding English sentence; and

if the sample sentence is a Chinese sentence, identically setting the row characters and the column characters of the label table in accordance with the order of characters of the corresponding Chinese sentence.

9 . The electronic device according to claim 7 , wherein the marking the cells composed of the row characters and the column characters in the label table as having or not having the entity category labels or the relationship category labels comprises:

marking the cells composed of the row characters and the column characters in the diagonal line of the label table as having or not having the entity category labels; and

marking the cells composed of the row characters and the column characters not in the diagonal line of the label table as having or not having the relationship category labels, wherein the relationship category labels are distributed symmetrically or asymmetrically about the diagonal line of the label table.

10 . The electronic device according to claim 7 , wherein the preset target function corresponding to the entity relationship extraction model comprises a first loss function which is determined by:

determining a label classification probability representing the entity category label or the relationship category label corresponding to each cell in the label table corresponding to each sample sentence according to a biaffine classification algorithm; and

calculating the label classification probability representing the entity category label or the relationship category label corresponding to each cell to determine the first loss function.

11 . The electronic device according to claim 10 , wherein the preset target function corresponding to the entity relationship extraction model comprises a second loss function which is determined by:

calculating entity category label probabilities in the diagonal line of the label table and relationship category label probabilities distributed symmetrically about the diagonal line to determine the second loss function.

12 . The electronic device according to claim 11 , wherein the preset target function corresponding to the entity relationship extraction model comprises a third loss function which is determined by:

calculating entity category label probabilities in the diagonal line of the label table according to a preset algorithm to determine the third loss function.

13 . A non-transitory computer-readable storage medium, storing a computer program configured to perform an information obtaining method, wherein the method comprises:

setting a label table corresponding to each sample sentence in a sample set, wherein row characters and column characters in the label table are set identically in accordance with an order of characters of the corresponding sample sentence;

marking cells composed of the row characters and the column characters in the label table as having or not having entity category labels or relationship category labels;

taking each sample sentence in the sample set as input information to a model to be trained and the label table corresponding to each sample sentence as output information of the model to be trained, and performing model training according to a preset target function;

processing characters of target sentence according to an entity relationship extraction model to generate a target label table corresponding to the target sentence, wherein the target label table comprises predicted scores corresponding to the cells composed of the row characters and the column characters;

calculating the predicted scores corresponding to the cells composed of the row characters and the column characters in the target label table to determine segmentation positions related to the entity category labels in the target label table;

determining whether the predicted scores for the cells in a diagonal line in the target label table meet the entity category labels according to the segmentation positions, and if yes, marking with the corresponding entity category labels;

determining whether the predicted scores for the cells not in the diagonal line in the target label table meet the relationship category labels according to the segmentation positions, and if yes, marking with the corresponding relationship category labels; and

generating entities of the target sentence and a relationship between entities of the target sentence according to the entity category labels and the relationship category labels marked in the target label table.

14 . The non-transitory computer-readable storage medium according to claim 13 , wherein the method further comprises:

if the sample sentence is an English sentence, identically setting the row characters and the column characters of the label table in accordance with an order of words of the corresponding English sentence; and

if the sample sentence is a Chinese sentence, identically setting the row characters and the column characters of the label table in accordance with the order of characters of the corresponding Chinese sentence.

15 . The non-transitory computer-readable storage medium according to claim 13 , wherein the marking the cells composed of the row characters and the column characters in the label table as having or not having the entity category labels or the relationship category labels comprises:

marking the cells composed of the row characters and the column characters in the diagonal line of the label table as having or not having the entity category labels; and

marking the cells composed of the row characters and the column characters not in the diagonal line of the label table as having or not having the relationship category labels, wherein the relationship category labels are distributed symmetrically or asymmetrically about the diagonal line of the label table.

16 . The non-transitory computer-readable storage medium according to claim 13 , wherein the preset target function corresponding to the entity relationship extraction model comprises a first loss function which is determined by:

determining a label classification probability representing the entity category label or the relationship category label corresponding to each cell in the label table corresponding to each sample sentence according to a biaffine classification algorithm; and

calculating the label classification probability representing the entity category label or the relationship category label corresponding to each cell to determine the first loss function.

17 . The non-transitory computer-readable storage medium according to claim 16 , wherein the preset target function corresponding to the entity relationship extraction model comprises a second loss function which is determined by:

calculating entity category label probabilities in the diagonal line of the label table and relationship category label probabilities distributed symmetrically about the diagonal line to determine the second loss function.

18 . The non-transitory computer-readable storage medium according to claim 17 , wherein the preset target function corresponding to the entity relationship extraction model comprises a third loss function which is determined by:

calculating entity category label probabilities in the diagonal line of the label table according to a preset algorithm to determine the third loss function.

Priority Claims (1)
CN 202110762048.6 · Jul 6, 2021 · national
Continuity (1)
Related Publication 20240273295A1 · Aug 15, 2024
References Cited (73)
US 8788407B1 · Singh · 2014 [cited by examiner]
US 9672205B2 · Miller · 2017 [cited by examiner]
US 10013436B1 · Cai · 2018 [cited by examiner]
US 10535017B2 · Johnson · 2020 [cited by examiner]
US 10740561B1 · Cao · 2020 [cited by examiner]
US 11170154B1 · Van Dyke · 2021 [cited by examiner]
US 11520762B2 · Dash · 2022 [cited by examiner]
US 11734937B1 · Pushkin · 2023 [cited by examiner]
US 20090319257A1 · Blume · 2009 [cited by examiner]
US 20110231382A1 · Xu · 2011 [cited by examiner]
US 20140046877A1 · Gopalakrishnan · 2014 [cited by examiner]
US 20140250111A1 · Morton · 2014 [cited by examiner]
US 20150120653A1 · Luo · 2015 [cited by examiner]
US 20150199363A1 · Morton · 2015 [cited by examiner]
US 20160078398A1 · Lu · 2016 [cited by examiner]
US 20160147871A1 · Kalyanpur et al. · 2016 [cited by applicant]
US 20160224473A1 · Acar · 2016 [cited by examiner]
US 20160321243A1 · Walia · 2016 [cited by examiner]
US 20170004184A1 · Jain · 2017 [cited by examiner]
US 20170235820A1 · Conrad · 2017 [cited by examiner]
US 20170351749A1 · Quirk et al. · 2017 [cited by applicant]
US 20180060302A1 · Liang · 2018 [cited by examiner]
US 20180157643A1 · Andrassy · 2018 [cited by examiner]
US 20180157741A1 · Allen · 2018 [cited by examiner]
US 20180232443A1 · Delgo et al. · 2018 [cited by applicant]
US 20190095599A1 · Iliofotou · 2019 [cited by examiner]
US 20190213258A1 · Bacarella · 2019 [cited by examiner]
US 20190213259A1 · Bacarella · 2019 [cited by examiner]
US 20190213260A1 · Bacarella · 2019 [cited by examiner]
US 20190354544A1 · Hertz · 2019 [cited by examiner]
US 20200073933A1 · Zhao et al. · 2020 [cited by applicant]
US 20200320130A1 · Korpman · 2020 [cited by examiner]
US 20210004537A1 · Sapugay · 2021 [cited by examiner]
US 20210073247A1 · Zamfir · 2021 [cited by examiner]
US 20210073302A1 · Srinivasaraghavan · 2021 [cited by examiner]
US 20210089614A1 · Jain · 2021 [cited by examiner]
US 20210125615A1 · Medalion · 2021 [cited by examiner]
US 20210133288A1 · Baughman · 2021 [cited by examiner]
US 20210149901A1 · Fonseca de Lima · 2021 [cited by examiner]
US 20210224651A1 · Crone · 2021 [cited by examiner]
US 20210397637A1 · Zhou · 2021 [cited by examiner]
US 20210406472A1 · Kato · 2021 [cited by examiner]
US 20220012633A1 · Molahalli · 2022 [cited by examiner]
US 20220092096A1 · Yuan · 2022 [cited by examiner]
US 20220156461A1 · Li · 2022 [cited by examiner]
US 20220172269A1 · Shan · 2022 [cited by examiner]
US 20220215175A1 · Li · 2022 [cited by examiner]
US 20220245347A1 · Wang · 2022 [cited by examiner]
US 20220284192A1 · Pawar · 2022 [cited by examiner]
US 20230195723A1 · Kaku · 2023 [cited by examiner]
US 20230244704A1 · Tu · 2023 [cited by examiner]
US 20230351111A1 · Fauqueur · 2023 [cited by examiner]
US 20230352192A1 · Yang · 2023 [cited by examiner]
CN 107783960A · 2018 [cited by applicant]
CN 110781305A · 2020 [cited by applicant]
CN 111008276A · 2020 [cited by applicant]
CN 111159365A · 2020 [cited by applicant]
CN 111160008A · 2020 [cited by applicant]
CN 111444715A · 2020 [cited by applicant]
CN 111444721A · 2020 [cited by applicant]
CN 111444723A · 2020 [cited by applicant]
CN 112215004A · 2021 [cited by applicant]
CN 112347759A · 2021 [cited by applicant]
CN 112613306A · 2021 [cited by applicant]
CN 112765956A · 2021 [cited by applicant]
CN 113010638A · 2021 [cited by applicant]
CN 113468330A · 2021 [cited by applicant]
WO 2015127855A1 · 2015 [cited by applicant]
WO 2021114745A1 · 2021 [cited by applicant]
You W., “Biomedical event extraction based on deep contextual word representation and self-attention”, Computer Engineering & Science, No. 9, Sep. 15, 2020, pp. 1670-1679. [cited by applicant]
Gupta P., “Table Filling Multi-Task Recurrent Neural Network for Joint Entity and Relation Extraction,” ACL. [cited by applicant]
International Search Report and Written Opinion for International Application No. PCT/CN2022/103637, mailed Sep. 23, 2022, 15 Pages. [cited by applicant]
Rui F., et al., “The Construction of Learning Social Networking Sites in the Perspective of Connectionism,” Journal of Distance Education, Apr. 18, 2013, Issue 3, pp. 10-16, (English Abstract on p. 16). [cited by applicant]