public static CustomRelevanceFunctionFactory buildModelFactoryFromModelJSON(JSONObject modelJson) throws RelevanceException
{
// runtime anonymous model;
try{
DataTable _dt = new DataTable();
CustomMathModel _cModel = CompilationHelper.createCustomMathScorer(modelJson, _dt);
RuntimeRelevanceFunction sm = new RuntimeRelevanceFunction(_cModel, _dt);
RuntimeRelevanceFunctionFactory rrfFactory = new RuntimeRelevanceFunctionFactory(sm);
return rrfFactory;
}catch(JSONException e)
{