public void start(String originalText, TokenStream tokenStream) {position = -1;currentNumFrags = 1;textSize = originalText.length();termAtt = tokenStream.addAttribute(CharTermAttribute.class);posIncAtt = tokenStream.addAttribute(PositionIncrementAttribute.class);offsetAtt = tokenStream.addAttribute(OffsetAttribute.class);}
public virtual void Start(string originalText, TokenStream tokenStream){position = -1;currentNumFrags = 1;textSize = originalText.Length;termAtt = tokenStream.AddAttribute<ICharTermAttribute>();posIncAtt = tokenStream.AddAttribute<IPositionIncrementAttribute>();offsetAtt = tokenStream.AddAttribute<IOffsetAttribute>();}