{"title":"AutoTR: Efficient Reformatting Text Spread out in a DOM Tree for Text-Analytic Applications","authors":"Changfeng Yu, Cheng Zhang, Hao Zhang, Jie Wang","doi":"10.1109/CSCI54926.2021.00176","DOIUrl":null,"url":null,"abstract":"We present an efficient algorithm to automatically reformat text contained in multiple nodes that are spread out in a DOM tree of an HTML file converted from a PDF document. Reformatting text on the fly is needed for hierarchical reading and other text-analytic applications. A naive approach would traverse the DOM tree multiple times, failing to meet the requirement of real-time reformatting. Our algorithm meets the real-time requirement by indexing text nodes and sentences with a pair of tag holders inserted into each text node to allow fast reformatting.","PeriodicalId":206881,"journal":{"name":"2021 International Conference on Computational Science and Computational Intelligence (CSCI)","volume":"24 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2021-12-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"2021 International Conference on Computational Science and Computational Intelligence (CSCI)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/CSCI54926.2021.00176","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0
Abstract
We present an efficient algorithm to automatically reformat text contained in multiple nodes that are spread out in a DOM tree of an HTML file converted from a PDF document. Reformatting text on the fly is needed for hierarchical reading and other text-analytic applications. A naive approach would traverse the DOM tree multiple times, failing to meet the requirement of real-time reformatting. Our algorithm meets the real-time requirement by indexing text nodes and sentences with a pair of tag holders inserted into each text node to allow fast reformatting.