Class FilterContext


  • public class FilterContext
    extends java.lang.Object
    Context for filter calls.
    • Constructor Detail

      • FilterContext

        public FilterContext​(Language sourceLang,
                             Language targetLang,
                             boolean sentenceSegmentingEnabled)
    • Method Detail

      • getSourceLang

        public Language getSourceLang()
        Source language of project.
      • getTargetLang

        public Language getTargetLang()
        Target language of project.
      • getInEncoding

        public java.lang.String getInEncoding()
        Source file encoding, but can be 'null'.
      • setInEncoding

        public FilterContext setInEncoding​(java.lang.String inEncoding)
      • getOutEncoding

        public java.lang.String getOutEncoding()
        Target file encoding, but can be 'null'.
      • setOutEncoding

        public FilterContext setOutEncoding​(java.lang.String outEncoding)
      • isSentenceSegmentingEnabled

        public boolean isSentenceSegmentingEnabled()
        Is sentence segmenting enabled.
      • isRemoveAllTags

        public boolean isRemoveAllTags()
        Should all tags be removed from segments
      • setRemoveAllTags

        public FilterContext setRemoveAllTags​(boolean isRemoveAllTags)
      • setSourceTokenizerClass

        public FilterContext setSourceTokenizerClass​(java.lang.Class<?> sourceTokenizerClass)
      • getSourceTokenizer

        public ITokenizer getSourceTokenizer()
      • setTargetTokenizerClass

        public FilterContext setTargetTokenizerClass​(java.lang.Class<?> targetTokenizerClass)
      • getTargetTokenizer

        public ITokenizer getTargetTokenizer()