}
ai++;
}
TokenSampleStream tss = new TokenSampleStream(System.in);
while(tss.hasNext()) {
TokenSample ts = tss.next();
String text = ts.getText();
System.out.println(text);
Span[] tokenSpans = ts.getTokenSpans();
int ti=0;
if (showSpans) {
for (int i=0;i<text.length();i++) {
if (ti-1 >= 0 && i==tokenSpans[ti-1].getEnd()-1) {
System.out.print("]");