Interface CoNLLColumnProcessor

    • Method Detail

      • getFieldName

        String getFieldName()
        Gets the name of the field
        Returns:
        the field name
      • processInput

        void processInput​(Document document,
                          List<CoNLLRow> documentRows,
                          Map<Tuple2<Integer,​Integer>,​Long> sentenceIndexToAnnotationId)
        Processes a set of CoNLL rows making up a document
        Parameters:
        document - the document
        documentRows - the CoNLL rows making up the document
        sentenceIndexToAnnotationId - the index of the token in the sentence to annotation id
      • processOutput

        String processOutput​(HString document,
                             Annotation token,
                             int index)
        Generates output data in CoNLL format
        Parameters:
        document - the HString representing the document.
        token - the token
        index - the index
        Returns:
        the string
      • updateRow

        default void updateRow​(CoNLLRow row,
                               String part)
        Updates a CoNLL row with this field
        Parameters:
        row - the row to update
        part - the part to update