Package net.sf.okapi.lib.xliff2.its
Class MTConfidence
- java.lang.Object
-
- net.sf.okapi.lib.xliff2.its.DataCategory
-
- net.sf.okapi.lib.xliff2.its.MTConfidence
-
- All Implemented Interfaces:
IITSItem
public class MTConfidence extends DataCategory
Implements the MT Confidence data category.
-
-
Constructor Summary
Constructors Constructor Description MTConfidence()Creates a newMTConfidenceobject without initial data.MTConfidence(String annotatorRef, double mtConfidence)Creates a newMTConfidenceobject with a given annotator reference and confidence score.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IITSItemcreateCopy()Creates a deep-copy clone of this item.StringgetDataCategoryName()Gets the id/name of this data category.DoublegetMtConfidence()voidsetMtConfidence(Double mtConfidence)voidvalidate()Validates the data category.-
Methods inherited from class net.sf.okapi.lib.xliff2.its.DataCategory
getAnnotatorRef, hasUnresolvedGroup, isGroup, setAnnotatorRef, setAnnotatorRef
-
-
-
-
Constructor Detail
-
MTConfidence
public MTConfidence()
Creates a newMTConfidenceobject without initial data.
-
MTConfidence
public MTConfidence(String annotatorRef, double mtConfidence)
Creates a newMTConfidenceobject with a given annotator reference and confidence score.- Parameters:
annotatorRef- the annotator reference.mtConfidence- the confidence score.
-
-
Method Detail
-
getDataCategoryName
public String getDataCategoryName()
Description copied from interface:IITSItemGets the id/name of this data category.- Returns:
- the id/name of this data category.
-
validate
public void validate()
Description copied from interface:IITSItemValidates the data category. Checks if all required attributes are set properly.
-
getMtConfidence
public Double getMtConfidence()
-
setMtConfidence
public void setMtConfidence(Double mtConfidence)
-
-