Partial parsing: Combining choice with commitment

被引:0
|
作者
Wallace, Malcolm [1 ]
机构
[1] Univ York, York YO10 5DD, N Yorkshire, England
关键词
D O I
暂无
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Parser combinators, often monadic, axe a venerable and widely-used solution to read data from some external format. However, the capability to return a partial parse has, until now, been largely missing. When only a small portion of the entire data is desired, it has been necessary either to parse the entire input in any case, or to break up the grammar into smaller pieces and move some work outside the world of combinators. This paper presents a technique for mixing lazy, demand-driven, parsing with strict parsing, all within the same set of combinators. The grammar specification remains complete and unbroken, yet only sufficient input is consumed to satisfy the result demanded. It is built on a combination of applicative and monadic parsers. Monadic parsing alone is insufficient to allow a choice operator to coexist with the early commitment needed for lazy results. Applicative parsing alone can give partial results, but does not permit context-sensitive grammars. But used together, we gain both partiality and a flexible ease of use. Performance results demonstrate that partial parsing is often faster and more space-efficient than strict parsing, but never worse. The trade-off is that partiality has consequences when dealing with ill-formed input.
引用
收藏
页码:93 / 110
页数:18
相关论文
共 50 条
  • [1] Combining error-driven pruning and classification for partial parsing
    Cardie, C
    Mardis, S
    Pierce, D
    [J]. MACHINE LEARNING, PROCEEDINGS, 1999, : 87 - 96
  • [2] Partial Dependency Parsing for Irish
    Dhonnchadha, Elaine Ui
    Van Genabith, Josef
    [J]. LREC 2010 - SEVENTH INTERNATIONAL CONFERENCE ON LANGUAGE RESOURCES AND EVALUATION, 2010,
  • [3] INTENTION IS CHOICE WITH COMMITMENT
    COHEN, PR
    LEVESQUE, HJ
    [J]. ARTIFICIAL INTELLIGENCE, 1990, 42 (2-3) : 213 - 261
  • [4] Commitment and transformative choice
    Duncan, Samuel
    [J]. EUROPEAN JOURNAL OF PHILOSOPHY, 2020, 28 (04) : 942 - 953
  • [5] MINIMAL COMMITMENT PARSING - 2 EXAMPLES FROM MANDARINE
    GORRELL, P
    CHEN, QM
    [J]. ESCOL 88 : PROCEEDINGS OF THE FIFTH EASTERN STATES CONFERENCE ON LINGUISTICS, 1989, : 175 - 186
  • [6] Combining statistical models with symbolic grammar in parsing
    Tsujii, Junichi
    [J]. 2007 IEEE WORKSHOP ON AUTOMATIC SPEECH RECOGNITION AND UNDERSTANDING, VOLS 1 AND 2, 2007, : 377 - 378
  • [7] Combining deep and shallow approaches in parsing German
    Schiehlen, M
    [J]. 41ST ANNUAL MEETING OF THE ASSOCIATION FOR COMPUTATIONAL LINGUISTICS, PROCEEDINGS OF THE CONFERENCE, 2003, : 112 - 119
  • [8] Partial parsing of spontaneous spoken French
    Blanc, Olivier
    Constant, Matthieu
    Dister, Anne
    Watrin, Patrick
    [J]. LREC 2010 - SEVENTH INTERNATIONAL CONFERENCE ON LANGUAGE RESOURCES AND EVALUATION, 2010, : 2111 - 2116
  • [9] Scalable Semantic Parsing with Partial Ontologies
    Choi, Eunsol
    Kwiatkowski, Tom
    Zettlemoyer, Luke
    [J]. PROCEEDINGS OF THE 53RD ANNUAL MEETING OF THE ASSOCIATION FOR COMPUTATIONAL LINGUISTICS AND THE 7TH INTERNATIONAL JOINT CONFERENCE ON NATURAL LANGUAGE PROCESSING, VOL 1, 2015, : 1311 - 1320
  • [10] Auditor choice as a commitment device
    Noda, Akihiro
    [J]. JOURNAL OF FINANCIAL REPORTING AND ACCOUNTING, 2018, 16 (03) : 374 - 394