//################setup the model: including estimation of variational model
//### step-1: run inside-outside
//note, inside and outside will use the transition_cost of each hyperedge, this cost is already linearly interpolated
TrivialInsideOutside insideOutsider = new TrivialInsideOutside();
insideOutsider.runInsideOutside(testHG, 0, 1, insideOutsideScalingFactor);//ADD_MODE=0=sum; LOG_SEMIRING=1;
//### step-2: model extraction based on the definition of Q
for(Map.Entry<VariationalNgramApproximator, FeatureTemplateBasedFF> entry : approximatorMap.entrySet()){
VariationalNgramApproximator approximator = entry.getKey();
FeatureTemplateBasedFF featureFunction = entry.getValue();