com.googlecode.whatswrong.io
Class MaltTab

java.lang.Object
  extended by com.googlecode.whatswrong.io.MaltTab
All Implemented Interfaces:
TabProcessor

public class MaltTab
extends java.lang.Object
implements TabProcessor

Loads Malt-TAB dependencies.

Author:
Sebastian Riedel

Field Summary
static java.lang.String name
          The name of the processor.
 
Constructor Summary
MaltTab()
           
 
Method Summary
 NLPInstance create(java.util.List<? extends java.util.List<java.lang.String>> rows)
          Create an NLPInstance from the given table (list of rows) of strings.
 NLPInstance createOpen(java.util.List<? extends java.util.List<java.lang.String>> rows)
          Create an NLPInstance from the given table (list of rows) of strings, assuming that the passed rows are from the open dataset.
 boolean supportsOpen()
          Does this processor support loading of open datasets (as in "CoNLL Open Track").
 java.lang.String toString()
          Returns the name of this processor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

name

public static final java.lang.String name
The name of the processor.

See Also:
Constant Field Values
Constructor Detail

MaltTab

public MaltTab()
Method Detail

toString

public java.lang.String toString()
Returns the name of this processor.

Overrides:
toString in class java.lang.Object
Returns:
the name of this processor.

create

public NLPInstance create(java.util.List<? extends java.util.List<java.lang.String>> rows)
Description copied from interface: TabProcessor
Create an NLPInstance from the given table (list of rows) of strings.

Specified by:
create in interface TabProcessor
Parameters:
rows - the rows that represent the column separated values in Tab format files.
Returns:
an NLPInstance that represents the given rows.
See Also:
TabProcessor.create(java.util.List>)

createOpen

public NLPInstance createOpen(java.util.List<? extends java.util.List<java.lang.String>> rows)
Description copied from interface: TabProcessor
Create an NLPInstance from the given table (list of rows) of strings, assuming that the passed rows are from the open dataset.

Specified by:
createOpen in interface TabProcessor
Parameters:
rows - the rows that represent the column separated values in Tab format files.
Returns:
an NLPInstance that represents the given rows.
See Also:
TabProcessor.createOpen(java.util.List>)

supportsOpen

public boolean supportsOpen()
Description copied from interface: TabProcessor
Does this processor support loading of open datasets (as in "CoNLL Open Track").

Specified by:
supportsOpen in interface TabProcessor
Returns:
true iff the processor supports loading of open datasets.
See Also:
TabProcessor.supportsOpen()


Copyright © 2009. All Rights Reserved.