public static short[] initializeSubStateArray(List<Tree<String>> trainTrees,List<Tree<String>> validationTrees,Numberer tagNumberer,short nSubStates){
  short[] nSub=new short[2];
  nSub[0]=1;
  nSub[1]=nSubStates;
  StateSetTreeList trainStateSetTrees=new StateSetTreeList(trainTrees,nSub,true,tagNumberer);
  @SuppressWarnings("unused") StateSetTreeList validationStateSetTrees=new StateSetTreeList(validationTrees,nSub,true,tagNumberer);
  StateSetTreeList.initializeTagNumberer(trainTrees,tagNumberer);
  StateSetTreeList.initializeTagNumberer(validationTrees,tagNumberer);
  short numStates=(short)tagNumberer.total();
  short[] nSubStateArray=new short[numStates];
  Arrays.fill(nSubStateArray,nSubStates);
  nSubStateArray[0]=1;
  return nSubStateArray;
}

public static short [ ] initializeSubStateArray ( List < Tree < String > > trainTrees , List < Tree < String > > validationTrees , Numberer tagNumberer , short nSubStates ) { short [ ] nSub = new short [ 2 ] ; nSub [ 0 ] = 1 ; nSub [ 1 ] = nSubStates ; StateSetTreeList trainStateSetTrees = new StateSetTreeList ( trainTrees , nSub , true , tagNumberer ) ; @ SuppressWarnings ( "unused" ) StateSetTreeList validationStateSetTrees = new StateSetTreeList ( validationTrees , nSub , true , tagNumberer ) ; StateSetTreeList . initializeTagNumberer ( trainTrees , tagNumberer ) ; StateSetTreeList . initializeTagNumberer ( validationTrees , tagNumberer ) ; short numStates = ( short ) tagNumberer . total ( ) ; short [ ] nSubStateArray = new short [ numStates ] ; Arrays . fill ( nSubStateArray , nSubStates ) ; nSubStateArray [ 0 ] = 1 ; return nSubStateArray ; }
convert a single tree [ string ] to tree [ stateset ]
