com.twitter.common.text.combiner
Class PunctuationExceptionCombiner.Builder

java.lang.Object
  extended by com.twitter.common.text.combiner.PunctuationExceptionCombiner.Builder
Enclosing class:
PunctuationExceptionCombiner

public static class PunctuationExceptionCombiner.Builder
extends Object


Constructor Summary
PunctuationExceptionCombiner.Builder(TokenStream inputStream)
           
 
Method Summary
 PunctuationExceptionCombiner.Builder addExceptionChars(String additionalChars)
          Add additional exception chars.
 PunctuationExceptionCombiner build()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PunctuationExceptionCombiner.Builder

public PunctuationExceptionCombiner.Builder(TokenStream inputStream)
Method Detail

addExceptionChars

public PunctuationExceptionCombiner.Builder addExceptionChars(String additionalChars)
Add additional exception chars. For example, to add . and ! to the list of non-punctuation chars, additionalChars should be ".!"

Parameters:
additionalChars - Additional characters that should not be considered punctuation
Returns:
PunctuationExceptionCombiner builder instance

build

public PunctuationExceptionCombiner build()