opennlp.leo.regulus.tdl
Class TdlBuilder

java.lang.Object
  |
  +--opennlp.leo.regulus.tdl.TdlBuilder

public class TdlBuilder
extends java.lang.Object

A utility for building TDL grammars.

Version:
$Revision: 1.2 $, $Date: 2002/03/31 14:17:38 $
Author:
Jason Baldridge

Constructor Summary
TdlBuilder()
           
 
Method Summary
 void addLexEntry(java.lang.String entry, TdlConj spec)
           
 void addRuleEntry(java.lang.String entry, TdlConj spec)
           
 void addTypeSpec(java.lang.String typeName, java.lang.String spec)
           
 void addTypeSpec(java.lang.String typeName, TdlConj conj)
           
 void addTypeSpec(java.lang.String typeName, TdlTerm spec)
           
 TdlEntry[] getLexicon()
           
 TdlEntry[] getRules()
           
 TdlType getType(java.lang.String typeName)
           
 TdlTypeDef[] getTypeDefs()
           
 boolean hasRuleEntry(java.lang.String ruleName)
           
 boolean hasTypeSpec(java.lang.String typeName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TdlBuilder

public TdlBuilder()
Method Detail

getType

public TdlType getType(java.lang.String typeName)

addLexEntry

public void addLexEntry(java.lang.String entry,
                        TdlConj spec)

hasRuleEntry

public boolean hasRuleEntry(java.lang.String ruleName)

addRuleEntry

public void addRuleEntry(java.lang.String entry,
                         TdlConj spec)

hasTypeSpec

public boolean hasTypeSpec(java.lang.String typeName)

addTypeSpec

public void addTypeSpec(java.lang.String typeName,
                        TdlConj conj)

addTypeSpec

public void addTypeSpec(java.lang.String typeName,
                        TdlTerm spec)

addTypeSpec

public void addTypeSpec(java.lang.String typeName,
                        java.lang.String spec)

getTypeDefs

public TdlTypeDef[] getTypeDefs()

getLexicon

public TdlEntry[] getLexicon()

getRules

public TdlEntry[] getRules()


Copyright 2002 Research Institute for Advanced Computer Science. All Rights Reserved.