### Question:
String2Sequence extends Pipe implements Serializable { public static String[][] genSequence(String sent){ CharType[] tags = Chars.getType(sent); int len = sent.length(); ArrayList<String> words = new ArrayList<String>(); ArrayList<String> types = new ArrayList<String>(); int begin =0; for(int j=0; j<len; j++) { if(j<len-1 && tags[j]==CharType.L && tags[j+1]==CharType.L){ continue; }else if(j<len-1 &&tags[j]==CharType.D && tags[j+1]==CharType.D){ continue; } StringType st = Chars.char2StringType(tags[j]); String w = sent.substring(begin,j+1); words.add(w); types.add(st.toString()); begin = j+1; } String[][] data = new String[2][]; data[0] = words.toArray(new String[words.size()]); data[1] = types.toArray(new String[types.size()]); return data; } String2Sequence(boolean b); @Override void addThruPipe(Instance inst); static String[][] genSequence(String sent);  }### Answer:
@Test public void testGenSequence() { String input = "我000们ss001 在 这里 哈哈ssss哈s。"; String[][] s = String2Sequence.genSequence(input); System.out.println(MyStrings.toString(s, ",", "\n")); }