{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2025,12,8]],"date-time":"2025-12-08T22:08:38Z","timestamp":1765231718055,"version":"3.41.0"},"reference-count":51,"publisher":"Association for Computing Machinery (ACM)","issue":"4","license":[{"start":{"date-parts":[[2007,11,1]],"date-time":"2007-11-01T00:00:00Z","timestamp":1193875200000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/www.acm.org\/publications\/policies\/copyright_policy#Background"}],"content-domain":{"domain":["dl.acm.org"],"crossmark-restriction":true},"short-container-title":["ACM Trans. Database Syst."],"published-print":{"date-parts":[[2007,11]]},"abstract":"<jats:p>Text is ubiquitous and, not surprisingly, many important applications rely on textual data for a variety of tasks. As a notable example, information extraction applications derive structured relations from unstructured text; as another example, focused crawlers explore the Web to locate pages about specific topics. Execution plans for text-centric tasks follow two general paradigms for processing a text database: either we can scan, or \u201ccrawl,\u201d the text database or, alternatively, we can exploit search engine indexes and retrieve the documents of interest via carefully crafted queries constructed in task-specific ways. The choice between crawl- and query-based execution plans can have a substantial impact on both execution time and output \u201ccompleteness\u201d (e.g., in terms of recall). Nevertheless, this choice is typically ad hoc and based on heuristics or plain intuition. In this article, we present fundamental building blocks to make the choice of execution plans for text-centric tasks in an informed, cost-based way. Towards this goal, we show how to analyze query- and crawl-based plans in terms of both execution time and output completeness. We adapt results from random-graph theory and statistics to develop a rigorous cost model for the execution plans. Our cost model reflects the fact that the performance of the plans depends on fundamental task-specific properties of the underlying text databases. We identify these properties and present efficient techniques for estimating the associated parameters of the cost model. We also present two optimization approaches for text-centric tasks that rely on the cost-model parameters and select efficient execution plans. Overall, our optimization approaches help build efficient execution plans for a task, resulting in significant efficiency and output completeness benefits. We complement our results with a large-scale experimental evaluation for three important text-centric tasks and over multiple real-life data sets.<\/jats:p>","DOI":"10.1145\/1292609.1292611","type":"journal-article","created":{"date-parts":[[2007,11,30]],"date-time":"2007-11-30T14:24:58Z","timestamp":1196432698000},"page":"21","update-policy":"https:\/\/doi.org\/10.1145\/crossmark-policy","source":"Crossref","is-referenced-by-count":21,"title":["Towards a query optimizer for text-centric tasks"],"prefix":"10.1145","volume":"32","author":[{"given":"Panagiotis G.","family":"Ipeirotis","sequence":"first","affiliation":[{"name":"New York University, New York, NY"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"given":"Eugene","family":"Agichtein","sequence":"additional","affiliation":[{"name":"Emory University, Atlanta, GA"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"given":"Pranay","family":"Jain","sequence":"additional","affiliation":[{"name":"Columbia University, New York, NY"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"given":"Luis","family":"Gravano","sequence":"additional","affiliation":[{"name":"Columbia University, New York, NY"}],"role":[{"role":"author","vocabulary":"crossref"}]}],"member":"320","published-online":{"date-parts":[[2007,11]]},"reference":[{"key":"e_1_2_1_1_1","first-page":"4","article-title":"Scaling information extraction to large document collections","volume":"28","author":"Agichtein E.","year":"2005","unstructured":"Agichtein , E. 2005 . Scaling information extraction to large document collections . IEEE Data Eng. Bull. 28 , 4 (Dec.), 3--10. Agichtein, E. 2005. Scaling information extraction to large document collections. IEEE Data Eng. Bull. 28, 4 (Dec.), 3--10.","journal-title":"IEEE Data Eng. Bull."},{"key":"e_1_2_1_2_1","doi-asserted-by":"publisher","DOI":"10.1145\/336597.336644"},{"volume-title":"Proceedings of the 19th IEEE International Conference on Data Engineering (ICDE'03)","author":"Agichtein E.","key":"e_1_2_1_3_1","unstructured":"Agichtein , E. and Gravano , L . 2003. Querying text databases for efficient information extraction . In Proceedings of the 19th IEEE International Conference on Data Engineering (ICDE'03) . Agichtein, E. and Gravano, L. 2003. Querying text databases for efficient information extraction. In Proceedings of the 19th IEEE International Conference on Data Engineering (ICDE'03)."},{"volume-title":"Proceedings of the Sixth International Workshop on the Web and Databases (WebDB'03)","author":"Agichtein E.","key":"e_1_2_1_4_1","unstructured":"Agichtein , E. , Ipeirotis , P. G. , and Gravano , L . 2003. Modeling query-based access to text databases . In Proceedings of the Sixth International Workshop on the Web and Databases (WebDB'03) . 87--92. Agichtein, E., Ipeirotis, P. G., and Gravano, L. 2003. Modeling query-based access to text databases. In Proceedings of the Sixth International Workshop on the Web and Databases (WebDB'03). 87--92."},{"key":"e_1_2_1_5_1","doi-asserted-by":"publisher","DOI":"10.1145\/342009.335420"},{"volume-title":"Word Frequency Distributions","author":"Baayen R. H.","key":"e_1_2_1_6_1","unstructured":"Baayen , R. H. 2006. Word Frequency Distributions . Springer , Berlin, Germany . Baayen, R. H. 2006. Word Frequency Distributions. Springer, Berlin, Germany."},{"volume-title":"Proceedings of 2002 AAAI Spring Symposium on Mining Answers from Texts and Knowledge Bases.","author":"Banko M.","key":"e_1_2_1_7_1","unstructured":"Banko , M. , Brill , E. , Dumais , S. , and Lin , J . 2002. AskMSR: Question answering using the World Wide Web . In Proceedings of 2002 AAAI Spring Symposium on Mining Answers from Texts and Knowledge Bases. Banko, M., Brill, E., Dumais, S., and Lin, J. 2002. AskMSR: Question answering using the World Wide Web. In Proceedings of 2002 AAAI Spring Symposium on Mining Answers from Texts and Knowledge Bases."},{"key":"e_1_2_1_8_1","doi-asserted-by":"publisher","DOI":"10.3998\/3336451.0007.104"},{"key":"e_1_2_1_9_1","unstructured":"Blake C. L. and Merz C. J. 1998. UCI repository of machine learning databases. http:\/\/www.ics.uci.edu\/~mlearn\/MLRepository.html.  Blake C. L. and Merz C. J. 1998. UCI repository of machine learning databases. http:\/\/www.ics.uci.edu\/~mlearn\/MLRepository.html."},{"key":"e_1_2_1_10_1","volume-title":"Proceedings of the First International Workshop on the Web and Databases (WebDB'98)","author":"Brin S.","year":"1998","unstructured":"Brin , S. 1998 . Extracting patterns and relations from the World Wide Web . In Proceedings of the First International Workshop on the Web and Databases (WebDB'98) . 172--183. Brin, S. 1998. Extracting patterns and relations from the World Wide Web. In Proceedings of the First International Workshop on the Web and Databases (WebDB'98). 172--183."},{"key":"e_1_2_1_11_1","doi-asserted-by":"publisher","DOI":"10.1145\/1060745.1060811"},{"volume-title":"Proceedings of the Third Biennial Conference on Innovative Data Systems Research (CIDR'07)","author":"Cafarella M. J.","key":"e_1_2_1_12_1","unstructured":"Cafarella , M. J. , Re , C. , Suciu , D. , and Etzioni , O . 2007. Structured querying of Web text data: A technical challenge . In Proceedings of the Third Biennial Conference on Innovative Data Systems Research (CIDR'07) . 225--234. Cafarella, M. J., Re, C., Suciu, D., and Etzioni, O. 2007. Structured querying of Web text data: A technical challenge. In Proceedings of the Third Biennial Conference on Innovative Data Systems Research (CIDR'07). 225--234."},{"key":"e_1_2_1_13_1","doi-asserted-by":"publisher","DOI":"10.1145\/382979.383040"},{"key":"e_1_2_1_14_1","doi-asserted-by":"publisher","DOI":"10.1145\/304182.304224"},{"key":"e_1_2_1_15_1","doi-asserted-by":"publisher","DOI":"10.1145\/215206.215328"},{"key":"e_1_2_1_16_1","doi-asserted-by":"publisher","DOI":"10.1145\/511446.511466"},{"key":"e_1_2_1_17_1","doi-asserted-by":"publisher","DOI":"10.1016\/S1389-1286(99)00052-3"},{"key":"e_1_2_1_18_1","doi-asserted-by":"publisher","DOI":"10.1145\/872757.872796"},{"key":"e_1_2_1_19_1","doi-asserted-by":"publisher","DOI":"10.1145\/276304.276343"},{"key":"e_1_2_1_20_1","doi-asserted-by":"publisher","DOI":"10.1145\/320248.320249"},{"key":"e_1_2_1_21_1","doi-asserted-by":"publisher","DOI":"10.1007\/PL00012580"},{"key":"e_1_2_1_22_1","volume-title":"Proceedings of the 13th National Conference on Artificial Intelligence (AAAI-96), Eighth Conference on Innovative Applications of Artificial Intelligence (IAAI-96)","author":"Cohen W. W.","year":"1996","unstructured":"Cohen , W. W. 1996 . Learning trees and rules with set-valued features . In Proceedings of the 13th National Conference on Artificial Intelligence (AAAI-96), Eighth Conference on Innovative Applications of Artificial Intelligence (IAAI-96) . 709--716. Cohen, W. W. 1996. Learning trees and rules with set-valued features. In Proceedings of the 13th National Conference on Artificial Intelligence (AAAI-96), Eighth Conference on Innovative Applications of Artificial Intelligence (IAAI-96). 709--716."},{"volume-title":"Proceedings of the AAAI Workshop on Internet-Based Information Systems. 16--25","author":"Cohen W. W.","key":"e_1_2_1_23_1","unstructured":"Cohen , W. W. and Singer , Y . 1996. Learning to query the Web . In Proceedings of the AAAI Workshop on Internet-Based Information Systems. 16--25 . Cohen, W. W. and Singer, Y. 1996. Learning to query the Web. In Proceedings of the AAAI Workshop on Internet-Based Information Systems. 16--25."},{"key":"e_1_2_1_24_1","volume-title":"Encyclopedia of Language and Linguistics","author":"Cunningham H.","unstructured":"Cunningham , H. 2006. Information extraction, automatic . In Encyclopedia of Language and Linguistics , 2 nd ed. Elsevier Science , Amsterdam, The Netherlands. Cunningham, H. 2006. Information extraction, automatic. In Encyclopedia of Language and Linguistics, 2nd ed. Elsevier Science, Amsterdam, The Netherlands.","edition":"2"},{"volume-title":"Proceedings of the 26th International Conference on Very Large Databases (VLDB'00)","author":"Diligenti M.","key":"e_1_2_1_25_1","unstructured":"Diligenti , M. , Coetzee , F. , Lawrence , S. , Giles , C. L. , and Gori , M . 2000. Focused crawling using context graphs . In Proceedings of the 26th International Conference on Very Large Databases (VLDB'00) . 527--534. Diligenti, M., Coetzee, F., Lawrence, S., Giles, C. L., and Gori, M. 2000. Focused crawling using context graphs. In Proceedings of the 26th International Conference on Very Large Databases (VLDB'00). 527--534."},{"key":"e_1_2_1_26_1","doi-asserted-by":"publisher","DOI":"10.1145\/267658.267666"},{"key":"e_1_2_1_27_1","unstructured":"Duda R. O. Hart P. E. and Stork D. G. 2000. Pattern Classification 2nd ed. Wiley New York NY.   Duda R. O. Hart P. E. and Stork D. G. 2000. Pattern Classification 2nd ed. Wiley New York NY."},{"key":"e_1_2_1_28_1","doi-asserted-by":"publisher","DOI":"10.1145\/988672.988687"},{"key":"e_1_2_1_29_1","doi-asserted-by":"publisher","DOI":"10.1145\/320248.320252"},{"key":"e_1_2_1_30_1","first-page":"1","article-title":"Query- vs. crawling-based classification of searchable Web databases","volume":"25","author":"Gravano L.","year":"2002","unstructured":"Gravano , L. , Ipeirotis , P. G. , and Sahami , M. 2002 . Query- vs. crawling-based classification of searchable Web databases . IEEE Data Eng. Bull. 25 , 1 (Mar.), 43--50. Gravano, L., Ipeirotis, P. G., and Sahami, M. 2002. Query- vs. crawling-based classification of searchable Web databases. IEEE Data Eng. Bull. 25, 1 (Mar.), 43--50.","journal-title":"IEEE Data Eng. Bull."},{"key":"e_1_2_1_31_1","doi-asserted-by":"publisher","DOI":"10.5555\/645856.669801"},{"key":"e_1_2_1_32_1","doi-asserted-by":"publisher","DOI":"10.1016\/S1532-0464(03)00013-3"},{"key":"e_1_2_1_33_1","doi-asserted-by":"publisher","DOI":"10.1145\/1142473.1142504"},{"volume-title":"Proceedings of the 28th International Conference on Very Large Databases (VLDB'02)","author":"Ipeirotis P. G.","key":"e_1_2_1_34_1","unstructured":"Ipeirotis , P. G. and Gravano , L . 2002. Distributed search over the hidden Web: Hierarchical database sampling and selection . In Proceedings of the 28th International Conference on Very Large Databases (VLDB'02) . 394--405. Ipeirotis, P. G. and Gravano, L. 2002. Distributed search over the hidden Web: Hierarchical database sampling and selection. In Proceedings of the 28th International Conference on Very Large Databases (VLDB'02). 394--405."},{"key":"e_1_2_1_35_1","doi-asserted-by":"publisher","DOI":"10.1145\/304182.304209"},{"volume-title":"Proceedings of the 22nd IEEE International Conference on Data Engineering (ICDE'07)","author":"Jain A.","key":"e_1_2_1_36_1","unstructured":"Jain , A. , Doan , A. , and Gravano , L . 2007. SQL queries over unstructured text databases (poster paper) . In Proceedings of the 22nd IEEE International Conference on Data Engineering (ICDE'07) . Jain, A., Doan, A., and Gravano, L. 2007. SQL queries over unstructured text databases (poster paper). In Proceedings of the 22nd IEEE International Conference on Data Engineering (ICDE'07)."},{"key":"e_1_2_1_38_1","doi-asserted-by":"publisher","DOI":"10.1145\/276304.276315"},{"volume-title":"Proceedings of the 11th IEEE International Conference on Data Engineering (ICDE'95)","author":"Ling Y.","key":"e_1_2_1_39_1","unstructured":"Ling , Y. and Sun , W . 1995. An evaluation of sampling-based size estimation methods for selections in database systems . In Proceedings of the 11th IEEE International Conference on Data Engineering (ICDE'95) . 532--539. Ling, Y. and Sun, W. 1995. An evaluation of sampling-based size estimation methods for selections in database systems. In Proceedings of the 11th IEEE International Conference on Data Engineering (ICDE'95). 532--539."},{"key":"e_1_2_1_40_1","doi-asserted-by":"publisher","DOI":"10.1145\/1007568.1007642"},{"key":"e_1_2_1_41_1","doi-asserted-by":"publisher","DOI":"10.1145\/1105664.1105679"},{"key":"e_1_2_1_42_1","doi-asserted-by":"publisher","DOI":"10.1145\/1031114.1031117"},{"key":"e_1_2_1_43_1","doi-asserted-by":"publisher","DOI":"10.1080\/15427951.2004.10129092"},{"key":"e_1_2_1_44_1","doi-asserted-by":"publisher","DOI":"10.1103\/PhysRevE.64.025102"},{"key":"e_1_2_1_45_1","doi-asserted-by":"publisher","DOI":"10.1145\/1065385.1065407"},{"key":"e_1_2_1_46_1","doi-asserted-by":"publisher","DOI":"10.1023\/A:1008287121180"},{"key":"e_1_2_1_47_1","volume-title":"Introduction to Probability Models","author":"Ross S. M.","unstructured":"Ross , S. M. 2002. Introduction to Probability Models , 8 th ed. Academic Press , New York, NY . Ross, S. M. 2002. Introduction to Probability Models, 8th ed. Academic Press, New York, NY.","edition":"8"},{"key":"e_1_2_1_48_1","doi-asserted-by":"publisher","DOI":"10.1145\/505282.505283"},{"volume-title":"Statistical Learning Theory","author":"Vapnik V. N.","key":"e_1_2_1_49_1","unstructured":"Vapnik , V. N. 1998. Statistical Learning Theory . Wiley-Interscience , New York, NY . Vapnik, V. N. 1998. Statistical Learning Theory. Wiley-Interscience, New York, NY."},{"volume-title":"Academic Press Professional","author":"Wilf H. S.","key":"e_1_2_1_50_1","unstructured":"Wilf , H. S. 1990. Generatingfunctionology . Academic Press Professional , Inc., New York, NY. Wilf, H. S. 1990. Generatingfunctionology. Academic Press Professional, Inc., New York, NY."},{"volume-title":"Proceedings of the Seventh Message Understanding Conference (MUC-7).","author":"Yangarber R.","key":"e_1_2_1_51_1","unstructured":"Yangarber , R. and Grishman , R . 1998. NYU: Description of the Proteus\/PET system as used for MUC-7 . In Proceedings of the Seventh Message Understanding Conference (MUC-7). Yangarber, R. and Grishman, R. 1998. NYU: Description of the Proteus\/PET system as used for MUC-7. In Proceedings of the Seventh Message Understanding Conference (MUC-7)."},{"volume-title":"Human Behavior and the Principle of Least Effort","author":"Zipf G. K.","key":"e_1_2_1_52_1","unstructured":"Zipf , G. K. 1949. Human Behavior and the Principle of Least Effort . Addison-Wesley , Reading, MA . Zipf, G. K. 1949. Human Behavior and the Principle of Least Effort. Addison-Wesley, Reading, MA."}],"container-title":["ACM Transactions on Database Systems"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/1292609.1292611","content-type":"unspecified","content-version":"vor","intended-application":"text-mining"},{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/1292609.1292611","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,6,18]],"date-time":"2025-06-18T14:52:27Z","timestamp":1750258347000},"score":1,"resource":{"primary":{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/1292609.1292611"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2007,11]]},"references-count":51,"journal-issue":{"issue":"4","published-print":{"date-parts":[[2007,11]]}},"alternative-id":["10.1145\/1292609.1292611"],"URL":"https:\/\/doi.org\/10.1145\/1292609.1292611","relation":{},"ISSN":["0362-5915","1557-4644"],"issn-type":[{"type":"print","value":"0362-5915"},{"type":"electronic","value":"1557-4644"}],"subject":[],"published":{"date-parts":[[2007,11]]},"assertion":[{"value":"2007-11-01","order":2,"name":"published","label":"Published","group":{"name":"publication_history","label":"Publication History"}}]}}