com.googlecode.whatswrong.io
Interface TabProcessor

All Known Implementing Classes:
CoNLL2000, CoNLL2002, CoNLL2003, CoNLL2004, CoNLL2005, CoNLL2006, CoNLL2008, CoNLL2009, MaltTab

public interface TabProcessor

A TabProcessor takes a table of string values and returns an NLPInstance. This table of string value corresponds to the standard way of representing sentences in the CoNLL shared tasks as well as the MALT-Tab format for dependencies.

Author:
Sebastian Riedel

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").
 

Method Detail

create

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.

Parameters:
rows - the rows that represent the column separated values in Tab format files.
Returns:
an NLPInstance that represents the given rows.

createOpen

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.

Parameters:
rows - the rows that represent the column separated values in Tab format files.
Returns:
an NLPInstance that represents the given rows.

supportsOpen

boolean supportsOpen()
Does this processor support loading of open datasets (as in "CoNLL Open Track").

Returns:
true iff the processor supports loading of open datasets.


Copyright © 2010. All Rights Reserved.