int lbracketIdx = label.toString().indexOf('['); int rbracketIdx = label.toString().indexOf(']');
char lbracket = nonTreebankLeftBracket(); char rbracket = nonTreebankRightBracket(); int lbracketIdx = label.toString().indexOf(lbracket); int rbracketIdx = label.toString().indexOf(rbracket);
  public final Symbol getCanonical(Symbol label) {    if (outputLexLabels) {      int lbracketIdx = label.toString().indexOf('[');      int rbracketIdx = label.toString().indexOf(']');      if (lbracketIdx != -1 && rbracketIdx != -1) {	String labelStr = label.toString();	Symbol unlexLabel = Symbol.get(labelStr.substring(0, lbracketIdx) +				       labelStr.substring(rbracketIdx + 1));	String canonStr = defaultGetCanonical(unlexLabel).toString();	return Symbol.get(canonStr +			  labelStr.substring(lbracketIdx, rbracketIdx + 1));      }    }    return defaultGetCanonical(label);  }