function  [y,final_score] = UGM_Decode_ICM(logNodePot, logEdgePot, edgeStruct,y,lang)
% INPUT
% nodePot(node,class)
% edgePot(class,class,edge) where e is referenced by V,E (must be the same
% between feature engine and inference engine)
%
% OUTPUT
% nodeLabel(node)

[y,final_score] = UGM_DecodeCombine_ICMC(logNodePot,logEdgePot,edgeStruct.edgeEnds,edgeStruct.nStates,edgeStruct.V,edgeStruct.E,int32(y),lang);
%y
%final_score
