Package adams.core.io

Class CoNLLHelper


  • public class CoNLLHelper
    extends Object
    Helper class for CoNLL format related operations.
    Version:
    $Revision$
    Author:
    FracPete (fracpete at waikato dot ac dot nz)
    • Field Detail

      • HEADERS

        public static final String[] HEADERS
        the CoNLL headers.
    • Constructor Detail

      • CoNLLHelper

        public CoNLLHelper()
    • Method Detail

      • parse

        public static adams.data.spreadsheet.SpreadSheet parse​(String content)
        Parses the given string in CoNLL format (one token per line).
        Parameters:
        content - the content with the tokens
        Returns:
        the generated spreadsheet
      • group

        public static List<String> group​(List<String> lines)
        Groups the lines read from a file containing one or more CoNLL token sequences into separate groups, represented by a single string.
        Parameters:
        lines - the lines read from file
        Returns:
        the groups