public class FilterContext
extends java.lang.Object
Constructor and Description |
---|
FilterContext(Language sourceLang,
Language targetLang,
boolean sentenceSegmentingEnabled) |
FilterContext(ProjectProperties props) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getInEncoding()
Source file encoding, but can be 'null'.
|
java.lang.String |
getOutEncoding()
Target file encoding, but can be 'null'.
|
Language |
getSourceLang()
Source language of project.
|
ITokenizer |
getSourceTokenizer() |
Language |
getTargetLang()
Target language of project.
|
ITokenizer |
getTargetTokenizer() |
boolean |
isRemoveAllTags()
Should all tags be removed from segments
|
boolean |
isSentenceSegmentingEnabled()
Is sentence segmenting enabled.
|
FilterContext |
setInEncoding(java.lang.String inEncoding) |
FilterContext |
setOutEncoding(java.lang.String outEncoding) |
FilterContext |
setRemoveAllTags(boolean isRemoveAllTags) |
FilterContext |
setSourceTokenizerClass(java.lang.Class<?> sourceTokenizerClass) |
FilterContext |
setTargetTokenizerClass(java.lang.Class<?> targetTokenizerClass) |
public FilterContext(ProjectProperties props)
public Language getSourceLang()
public Language getTargetLang()
public java.lang.String getInEncoding()
public FilterContext setInEncoding(java.lang.String inEncoding)
public java.lang.String getOutEncoding()
public FilterContext setOutEncoding(java.lang.String outEncoding)
public boolean isSentenceSegmentingEnabled()
public boolean isRemoveAllTags()
public FilterContext setRemoveAllTags(boolean isRemoveAllTags)
public FilterContext setSourceTokenizerClass(java.lang.Class<?> sourceTokenizerClass)
public ITokenizer getSourceTokenizer()
public FilterContext setTargetTokenizerClass(java.lang.Class<?> targetTokenizerClass)
public ITokenizer getTargetTokenizer()