Package net.sf.okapi.steps.segmentation
Class Parameters
- java.lang.Object
-
- net.sf.okapi.common.BaseParameters
-
- net.sf.okapi.common.StringParameters
-
- net.sf.okapi.steps.segmentation.Parameters
-
- All Implemented Interfaces:
Cloneable
,IParameters
public class Parameters extends StringParameters
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Parameters.SegmStrategy
-
Field Summary
Fields Modifier and Type Field Description static int
TRIM_DEFAULT
static int
TRIM_NO
static int
TRIM_YES
-
Fields inherited from class net.sf.okapi.common.StringParameters
buffer
-
Fields inherited from class net.sf.okapi.common.BaseParameters
path
-
-
Constructor Summary
Constructors Constructor Description Parameters()
-
Method Summary
-
Methods inherited from class net.sf.okapi.common.StringParameters
fromString, fromString, getBoolean, getGroup, getInteger, getString, setBoolean, setGroup, setInteger, setString, toString
-
Methods inherited from class net.sf.okapi.common.BaseParameters
getParametersDescription, getPath, load, load, save, setPath
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface net.sf.okapi.common.IParameters
copy
-
-
-
-
Method Detail
-
reset
public void reset()
Description copied from class:StringParameters
Reset this parameters object to its default values.Subclasses should override this method to set any initial values and instantiate any objects that require allocation. It is recommended that subclasses also call
super.reset()
in the override to ensure that the buffer is empty.- Specified by:
reset
in interfaceIParameters
- Overrides:
reset
in classStringParameters
-
getOverwriteSegmentation
public boolean getOverwriteSegmentation()
-
setOverwriteSegmentation
public void setOverwriteSegmentation(boolean overwriteSegmentation)
-
getDeepenSegmentation
public boolean getDeepenSegmentation()
-
setDeepenSegmentation
public void setDeepenSegmentation(boolean deepenSegmentation)
-
getForcesegmentedOutput
public boolean getForcesegmentedOutput()
-
setForcesegmentedOutput
public void setForcesegmentedOutput(boolean forceSegmentedOutput)
-
setSourceSrxPath
public void setSourceSrxPath(String sourceSrxPath)
-
getSourceSrxPath
public String getSourceSrxPath()
-
setTargetSrxPath
public void setTargetSrxPath(String targetSrxPath)
-
getTargetSrxPath
public String getTargetSrxPath()
-
setSourceSrx
public void setSourceSrx(String sourceSrx)
-
getSourceSrx
public String getSourceSrx()
-
setTargetSrx
public void setTargetSrx(String targetSrx)
-
getTargetSrx
public String getTargetSrx()
-
getRenumberCodes
public boolean getRenumberCodes()
-
setRenumberCodes
public void setRenumberCodes(boolean renumberCodes)
-
getSegmentSource
public boolean getSegmentSource()
-
setSegmentSource
public void setSegmentSource(boolean segmentSource)
-
getSegmentTarget
public boolean getSegmentTarget()
-
setSegmentTarget
public void setSegmentTarget(boolean segmentTarget)
-
getCheckSegments
public boolean getCheckSegments()
-
setCheckSegments
public void setCheckSegments(boolean checkSegments)
-
getTrimSrcLeadingWS
public int getTrimSrcLeadingWS()
-
setTrimSrcLeadingWS
public void setTrimSrcLeadingWS(int trimSrcLeadingWS)
-
getTrimSrcTrailingWS
public int getTrimSrcTrailingWS()
-
setTrimSrcTrailingWS
public void setTrimSrcTrailingWS(int trimSrcTrailingWS)
-
getTrimTrgLeadingWS
public int getTrimTrgLeadingWS()
-
setTrimTrgLeadingWS
public void setTrimTrgLeadingWS(int trimTrgLeadingWS)
-
getTrimTrgTrailingWS
public int getTrimTrgTrailingWS()
-
setTrimTrgTrailingWS
public void setTrimTrgTrailingWS(int trimTrgTrailingWS)
-
isTreatIsolatedCodesAsWhitespace
public boolean isTreatIsolatedCodesAsWhitespace()
-
setTreatIsolatedCodesAsWhitespace
public void setTreatIsolatedCodesAsWhitespace(boolean value)
-
getSegmentationStrategy
public Parameters.SegmStrategy getSegmentationStrategy()
-
setSegmentationStrategy
public void setSegmentationStrategy(Parameters.SegmStrategy strategy)
-
getTargetSrxStream
public InputStream getTargetSrxStream()
-
setTargetSrxStream
public void setTargetSrxStream(InputStream targetSrxStream)
-
getSourceSrxStream
public InputStream getSourceSrxStream()
-
setSourceSrxStream
public void setSourceSrxStream(InputStream sourceSrxStream)
-
getDoNotSegmentIfHasTarget
public boolean getDoNotSegmentIfHasTarget()
-
setDoNotSegmentIfHasTarget
public void setDoNotSegmentIfHasTarget(boolean doNotSegmentIfHasTarget)
-
-