Method and apparatus for extracting information
Abstract:
The present application discloses a method and apparatus for extracting information. A specific implementation of the method comprises: parsing a pre-acquired web page file into a structure of a tag tree, and recognizing, in nodes of the tag tree, at least one body node at which a web page body in the web page file is located; performing a paragraph division on a content contained in the at least one body node to generate paragraph blocks, and setting a tag attribute for each paragraph block according to an attribute of a tag associated with the each paragraph block; classifying a text content contained in the each paragraph block based on the tag attribute of the each paragraph block; and extracting information comprising a question and an answer from the text content contained in the each paragraph block based on a classification result. This implementation implements the automatic and precise extraction of information.
Public/Granted literature
Information query
Patent Agency Ranking
0/0