Package com.senseidb.search.relevance.RuntimeRelevanceFunction

Examples of com.senseidb.search.relevance.RuntimeRelevanceFunction.RuntimeRelevanceFunctionFactory.build()


        return crfFactory.build();
      }
      else if (ModelStorage.hasRuntimeModel(modelName))
      {
        RuntimeRelevanceFunctionFactory rrfFactory = ModelStorage.getRuntimeModel(modelName);
        return rrfFactory.build();
      }
      else
      {
        throw new JSONException("No such model (CustomRelevanceFunctionFactory plugin) is registered: " + modelName);
      }
View Full Code Here


      JSONObject modelJson  = jsonRelevance.optJSONObject(RelevanceJSONConstants.KW_MODEL);
     
      // build the model factory and one model;
      // if the model factory needs to be saved, the factory will be used, otherwise, just return the model object (RuntimeRelevanceFunction);
      RuntimeRelevanceFunctionFactory rrfFactory = (RuntimeRelevanceFunctionFactory) buildModelFactoryFromModelJSON(modelJson);
      RuntimeRelevanceFunction sm = (RuntimeRelevanceFunction) rrfFactory.build();
     
      //store the model if specified;
      if(modelJson.has(RelevanceJSONConstants.KW_SAVE_AS))
      {
//        "save_as":{
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.