Here you can find the source of getLemma(String[] tokens, BitSet bits, String delimiter)
public static String getLemma(String[] tokens, BitSet bits, String delimiter)
//package com.java2s; //License from project: Open Source License import java.util.BitSet; public class Main { public static String getLemma(String[] tokens, BitSet bits, String delimiter) { StringBuffer buf = new StringBuffer(); for (int i = 0; i < tokens.length; i++) { if (i != 0 && !bits.get(i - 1)) { buf.append(delimiter);//w w w .j ava2s . co m } buf.append(tokens[i]); } return buf.toString(); } }