Method for extracting content from document, electronic device, and storage medium
AssigneeBeijing Baidu Netcom Science Technology Co., Ltd.
InventorsKai Zeng, Hua Lu
Life of this patent
Estimating the term…
Abstract
The disclosure provides a method and an apparatus for extracting content from a document, an electronic device, and a storage medium, which relates to the field of artificial intelligence (AI) technologies such as natural language processing (NLP), deep learning (DL), knowledge graph (KG). The detailed implementation scheme is: obtaining the document; performing anchor search on the document to obtain anchor information corresponding to the document; determining region information of content to be extracted based on the anchor information; and extracting the content to be extracted from the document based on the region information.
Claims20
A method for extracting content from a document, comprising:
- obtaining the document;
- performing anchor search on the document to obtain anchor information corresponding to the document;
- determining region information of content to be extracted based on the anchor information;
- and
- extracting the content to be extracted from the document based on the region information.
An electronic device, comprising:
- at least one processor;
- and
- a memory communicating with the at least one processor;
- wherein,
- the memory is configured to store instructions executable by the at least one processor, and when the instructions are executed by the at least one processor, the at least one processor is cause to perform:
- obtaining the document;
- performing anchor search on the document to obtain anchor information corresponding to the document;
- determining region information of content to be extracted based on the anchor information;
- and
- extracting the content to be extracted from the document based on the region information.
A non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are configured to cause a computer to execute a method for extracting content from a document comprising:
- obtaining the document;
- performing anchor search on the document to obtain anchor information corresponding to the document;
- determining region information of content to be extracted based on the anchor information;
- and
- extracting the content to be extracted from the document based on the region information.
Dependencies are inferred from the claim text.