93949596979899100101102103104
for (i=0; i<size; i++) { tmp = lines.get(i); form = tmp[i_form]; if (i_pos < 0) nodes[i] = new POSNode(form); else nodes[i] = new POSNode(form, tmp[i_pos]); } } catch (Exception e) {e.printStackTrace();} return nodes;
146147148149150151152153154
{ int i, size = tokens.size(); POSNode[] nodes = new POSNode[size]; for (i=0; i<size; i++) nodes[i] = new POSNode(tokens.get(i)); return nodes; }