Skip to main content
QUICK REVIEW

[Paper Review] ProFIT: Prolog with Features, Inheritance and Templates

Gregor Erbach|arXiv (Cornell University)|Feb 5, 1995
Natural Language Processing TechniquesComputer Science7 references16 citations
TL;DR

ProFIT extends Prolog with features, inheritance, and templates by compiling sorted feature terms into standard Prolog terms, enabling efficient unification via Prolog's built-in term handling. This approach achieves 5–10× speedup over systems using custom unification algorithms, allowing high-performance NLP systems to be built from grammar specifications using sorted feature structures.

ABSTRACT

ProFIT is an extension of Standard Prolog with Features, Inheritance and Templates. ProFIT allows the programmer or grammar developer to declare an inheritance hierarchy, features and templates. Sorted feature terms can be used in ProFIT programs together with Prolog terms to provide a clearer description language for linguistic structures. ProFIT compiles all sorted feature terms into a Prolog term representation, so that the built-in Prolog term unification can be used for the unification of sorted feature structures, and no special unification algorithm is needed. ProFIT programs are compiled into Prolog programs, so that no meta-interpreter is needed for their execution. ProFIT thus provides a direct step from grammars developed with sorted feature terms to Prolog programs usable for practical NLP systems.

Motivation & Objective

  • To bridge the gap between efficient logic programming and expressive sorted feature formalisms in NLP.
  • To enable the use of feature-based grammars with Prolog's efficient unification and compilation techniques.
  • To provide a practical, high-performance implementation that compiles feature grammars into standard Prolog programs without requiring a meta-interpreter.
  • To support large-scale grammar and lexicon development with inheritance, features, and templates while maintaining execution efficiency.
  • To make advanced linguistic formalisms usable in real-world NLP applications through efficient compilation to Prolog.

Proposed method

  • Compile sorted feature terms into standard Prolog terms using a mapping that preserves type hierarchies and feature structures.
  • Use Prolog’s native unification for feature structure unification, eliminating the need for custom unification algorithms.
  • Introduce datatype declarations for sorts, features, and templates to support inheritance and structured grammar development.
  • Implement a ProFIT-to-Prolog compiler that translates grammar and lexical specifications into executable Prolog code.
  • Provide a user interface that translates ProFIT terms to and from Prolog terms for input, output, and debugging.
  • Support optional optimizations such as disabling sort checking, feature search, or cyclic term handling to improve performance when not needed.

Experimental results

Research questions

  • RQ1Can sorted feature terms be efficiently compiled into Prolog terms without sacrificing expressiveness or performance?
  • RQ2How does the performance of ProFIT compare to systems that use custom unification algorithms on top of Prolog?
  • RQ3To what extent can existing logic programming optimization techniques be applied to feature-based grammars after compilation?
  • RQ4Can ProFIT support complex linguistic formalisms like inheritance hierarchies and templates while maintaining efficiency?
  • RQ5How effective is ProFIT in enabling the development of large-scale grammars and lexicons for practical NLP systems?

Key findings

  • ProFIT achieves a 5–10× speedup over systems that implement feature unification via custom algorithms on top of Prolog.
  • The use of Prolog’s native unification on compiled feature terms eliminates the performance overhead of specialized unification routines.
  • ProFIT programs are compiled into standard Prolog, enabling full use of Prolog’s optimization techniques such as indexing, tabulation, and partial evaluation.
  • The system supports inheritance hierarchies, feature structures, and templates through declarative declarations, enabling structured grammar development.
  • The user interface allows readable input/output of ProFIT terms, with shared structures printed once and referenced via variables, improving debuggability.
  • The system is available free of charge and has been used in projects involving grammar extension, bidirectional parsing, and reusable linguistic resources.

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.