Skip to main content
QUICK REVIEW

[Paper Review] Syntactic Analysis by Local Grammars Automata: an Efficient Algorithm

Mehryar Mohri|ArXiv.org|Jul 4, 1994
DNA and Biological ComputingBiochemistry, Genetics and Molecular Biology6 references14 citations
TL;DR

This paper presents an efficient algorithm for syntactic analysis using local grammars represented as finite state automata, leveraging failure functions to detect forbidden word sequences in texts. The method significantly reduces ambiguity in lemmatized texts by applying automaton-based filtering with optimal time complexity, enabling scalable processing of large-scale grammatical constraints.

ABSTRACT

Local grammars can be represented in a very convenient way by automata. This paper describes and illustrates an efficient algorithm for the application of local grammars put in this form to lemmatized texts.

Motivation & Objective

  • To reduce syntactic ambiguities in lemmatized texts by applying local grammars as finite state automata.
  • To develop an efficient algorithm for detecting forbidden word sequences in texts using automaton intersection and failure functions.
  • To enable scalable application of local grammars, even when their union grows large in size.
  • To support both negative (forbidden sequences) and positive (required continuations) rule representations in automaton form.

Proposed method

  • Represents local grammars as finite state automata that encode forbidden word sequences.
  • Uses failure functions (from Aho-Corasick) to optimize sequence matching in automaton-based pattern detection.
  • Applies automaton intersection to filter text automata by removing paths containing forbidden sequences.
  • Extends the failure function concept to automata for improved time complexity during sequence matching.
  • Supports both negative and positive rule representations: forbidden sequences (negative) and required continuations (positive) via final states.
  • Employs a queue-based state construction algorithm to compute the intersection of text and grammar automata efficiently.

Experimental results

Research questions

  • RQ1How can local grammars be efficiently applied to reduce syntactic ambiguities in lemmatized texts?
  • RQ2What algorithmic improvements can be made to detect multiple forbidden sequences in a text automaton?
  • RQ3How does the use of failure functions enhance the efficiency of automaton-based syntactic filtering?
  • RQ4Can both negative and positive local grammar rules be uniformly processed within the same automaton framework?
  • RQ5What is the scalability of the proposed algorithm when applied to large unions of local grammar automata?

Key findings

  • The proposed algorithm achieves optimal time complexity by extending the Aho-Corasick failure function to automata, enabling efficient detection of forbidden sequences.
  • The algorithm successfully filters ambiguous paths in text automata, significantly reducing the number of spurious syntactic analyses.
  • Experimental results show the algorithm scales well, handling unions of local grammars with up to several hundred states.
  • The method supports both negative (forbidden sequences) and positive (required continuations) rule representations using final states and transition constraints.
  • The algorithm is generalizable to other automaton operations such as intersection and pattern matching with automaton inputs.
  • The implementation on a 68040 33MHz and i486 50MHz system confirms practical efficiency for real-world NLP applications.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.