ABL4J (Alignment Based Learning for Java) - 0.9.7

org.schwiebert.abl4j.io
Class IOFactory

java.lang.Object
  extended by org.schwiebert.abl4j.io.IOFactory

public class IOFactory
extends Object

This class is used to create an ITreebankReader or ITreebankWriter . The concrete implementation of the object returned by getWriter(PropertiesMap) or getReader(PropertiesMap) depends on the property AblProperties.WRITER_CLASS (or AblProperties.READER_CLASS ). The provided PropertiesMap is further used to configure the writer or reader. See TreebankReader or TreebankWriter for custom implementations. Currently, ABL4J supports two document formats: the "original" format as used by ABL, and a proprietary XML format.

Author:
sschwieb
See Also:
ITreebankWriter, ITreebankReader

Constructor Summary
IOFactory()
           
 
Method Summary
static ITreebankReader getReader(PropertiesMap pm)
           
static ITreebankWriter getWriter(PropertiesMap pm)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IOFactory

public IOFactory()
Method Detail

getWriter

public static ITreebankWriter getWriter(PropertiesMap pm)
                                 throws NoWriterAvailableException
Throws:
NoWriterAvailableException

getReader

public static ITreebankReader getReader(PropertiesMap pm)
                                 throws NoReaderAvailableException
Throws:
NoReaderAvailableException

ABL4J (Alignment Based Learning for Java) - 0.9.7

© 2007 Stephan Schwiebert