Class InconsistencyCheck
- java.lang.Object
-
- net.sf.okapi.steps.inconsistencycheck.InconsistencyCheck
-
public class InconsistencyCheck extends Object
-
-
Constructor Summary
Constructors Constructor Description InconsistencyCheck()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidgenerateReport(String reportPath, boolean isEndBatch)Creates the inconsistency report.ParametersgetParameters()voidreset(boolean includeXml)voidsetParameters(Parameters params)voidstore(String docId, String subDocId, String tuId, String segId, TextFragment srcTf, TextFragment trgTf)Stores the source-target pair for comparison
-
-
-
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 documentsubDocId- 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.
-
-