ABL4J (Alignment Based Learning for Java) - 0.9.7

org.schwiebert.abl4j.io
Interface ISerializationVisitor

All Known Implementing Classes:
PlainTextSerializationVisitor, XMLVisitor

public interface ISerializationVisitor

Definition of a visitor-interface that can be used to serialize a ITreeBank.

Author:
sschwieb

Method Summary
 void close()
           
 void initialize(Writer writer, Properties properties)
           
 void visitConstituent(IConstituent constituent, boolean begin)
           
 void visitNonTerminal(NonTerminal nonTerminal, boolean hasNext)
           
 void visitSentence(ISentence tree)
           
 void visitTree(ITree tree, boolean begin)
           
 void visitTreeBank(ITreeBank<?> treebank)
           
 void visitWord(IWord word, boolean hasNext)
           
 

Method Detail

initialize

void initialize(Writer writer,
                Properties properties)
                throws IOException
Throws:
IOException

visitTreeBank

void visitTreeBank(ITreeBank<?> treebank)
                   throws IOException
Throws:
IOException

visitTree

void visitTree(ITree tree,
               boolean begin)
               throws IOException
Throws:
IOException

visitSentence

void visitSentence(ISentence tree)
                   throws IOException
Throws:
IOException

visitConstituent

void visitConstituent(IConstituent constituent,
                      boolean begin)
                      throws IOException
Throws:
IOException

visitWord

void visitWord(IWord word,
               boolean hasNext)
               throws IOException
Throws:
IOException

visitNonTerminal

void visitNonTerminal(NonTerminal nonTerminal,
                      boolean hasNext)
                      throws IOException
Throws:
IOException

close

void close()
           throws IOException
Throws:
IOException

ABL4J (Alignment Based Learning for Java) - 0.9.7

© 2007 Stephan Schwiebert