Class InconsistencyCheck


  • public class InconsistencyCheck
    extends Object
    • Constructor Detail

      • InconsistencyCheck

        public InconsistencyCheck()
    • Method Detail

      • reset

        public void reset​(boolean includeXml)
      • getParameters

        public Parameters getParameters()
      • setParameters

        public void setParameters​(Parameters params)
      • store

        public void store​(String docId,
                          String subDocId,
                          String tuId,
                          String segId,
                          TextFragment srcTf,
                          TextFragment trgTf)
        Stores the source-target pair for comparison
        Parameters:
        docId - the full path to the document
        subDocId - the sub-document number of the source-target pair.
        tuId - the text unit number of the source-target pair.
        segId - the segment number of the source-target pair.
        srcTf - the source text fragment to store (cannot be null).
        trgTf - the target text fragment to store (cannot be null).
      • generateReport

        public void generateReport​(String reportPath,
                                   boolean isEndBatch)
        Creates the inconsistency report.
        Parameters:
        reportPath - the location for the report.
        isEndBatch - indicates if this method is invoked from the EndBatch event handler (true), or if from the EndDocument event handler (false). The second case is done only in per-file mode.