de.dfki.lt.tools.tokenizer
Class PunctDescription

java.lang.Object
  extended byde.dfki.lt.tools.tokenizer.Description
      extended byde.dfki.lt.tools.tokenizer.PunctDescription

public class PunctDescription
extends Description

PunctDescription extends Description. It manages the content of a punctuation description file.

Version:
$Id: PunctDescription.java,v 1.5 2005/04/12 08:47:37 steffen Exp $
Author:
Joerg Steffen, DFKI

Field Summary
protected static java.lang.String ALL_RULE
          This is the name of the all punctuation rule.
protected static java.lang.String CLITIC_RULE
          This is the name of the clitic punctuation rule.
protected static java.lang.String CLOSE_PUNCT
          This is the class name for closing punctuation.
protected static java.lang.String INTERNAL_RULE
          This is the name of the internal punctuation rule.
protected static java.lang.String INTERNAL_TU_RULE
          This is the name of the sentence internal punctuation rule.
protected static java.lang.String NON_BREAK_LEFT_RULE
          This is the name of the non-breaking left punctuation rule.
protected static java.lang.String NON_BREAK_RIGHT_RULE
          This is the name of the non-breaking right punctuation rule.
protected static java.lang.String OPEN_CLOSE_PUNCT
          This is the class name for ambiguous open/close punctuation.
protected static java.lang.String OPEN_PUNCT
          This is the class name for opening punctuation.
 
Fields inherited from class de.dfki.lt.tools.tokenizer.Description
DEF_CLASS, DEF_REGEXP, definitionsMap, DEFS, FACTORY, LIST_ENCODING, LIST_FILE, LISTS, listsMap, regExpMap, RULES, rulesMap
 
Constructor Summary
PunctDescription(org.w3c.dom.Document punctDescr, java.util.Set classes)
          This creates a new instance of PunctDescription for the punctuation description contained in the dom Document punctDescr.
 
Methods inherited from class de.dfki.lt.tools.tokenizer.Description
getDefinitionsMap, getListsMap, getRegExpMap, getRulesMap, loadDefinitions, loadLists, loadRules, setDefinitionsMap, setListsMap, setRegExpMap, setRulesMap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ALL_RULE

protected static final java.lang.String ALL_RULE
This is the name of the all punctuation rule.

See Also:
Constant Field Values

CLITIC_RULE

protected static final java.lang.String CLITIC_RULE
This is the name of the clitic punctuation rule.

See Also:
Constant Field Values

INTERNAL_RULE

protected static final java.lang.String INTERNAL_RULE
This is the name of the internal punctuation rule.

See Also:
Constant Field Values

NON_BREAK_LEFT_RULE

protected static final java.lang.String NON_BREAK_LEFT_RULE
This is the name of the non-breaking left punctuation rule.

See Also:
Constant Field Values

NON_BREAK_RIGHT_RULE

protected static final java.lang.String NON_BREAK_RIGHT_RULE
This is the name of the non-breaking right punctuation rule.

See Also:
Constant Field Values

INTERNAL_TU_RULE

protected static final java.lang.String INTERNAL_TU_RULE
This is the name of the sentence internal punctuation rule.

See Also:
Constant Field Values

OPEN_CLOSE_PUNCT

protected static final java.lang.String OPEN_CLOSE_PUNCT
This is the class name for ambiguous open/close punctuation.

See Also:
Constant Field Values

OPEN_PUNCT

protected static final java.lang.String OPEN_PUNCT
This is the class name for opening punctuation.

See Also:
Constant Field Values

CLOSE_PUNCT

protected static final java.lang.String CLOSE_PUNCT
This is the class name for closing punctuation.

See Also:
Constant Field Values
Constructor Detail

PunctDescription

public PunctDescription(org.w3c.dom.Document punctDescr,
                        java.util.Set classes)
This creates a new instance of PunctDescription for the punctuation description contained in the dom Document punctDescr.

Parameters:
punctDescr - a dom Document with the punctuation description
classes - a Set with the defined classes, used for validation
Throws:
InitializationException - if an error occurs