use of com.sri.ai.praise.core.inference.byinputrepresentation.classbased.hogm.parsing.HOGMModelParsing in project aic-praise by aic-sri-international.
the class UsefulOperationsParameterEstimation method parseModelStringToHOGMModel.
/**
* To convert a model String into a HOGModel.
*/
public static HOGModel parseModelStringToHOGMModel(String modelString, List<HOGMProblemError> modelErrors) {
HOGMModelParsing parsingWithErrorCollecting = new HOGMModelParsing(modelString, modelErrors);
HOGModel result = parsingWithErrorCollecting.getModel();
return result;
}
use of com.sri.ai.praise.core.inference.byinputrepresentation.classbased.hogm.parsing.HOGMModelParsing in project aic-praise by aic-sri-international.
the class HOGMMultiQueryProblemSolver method initializeModel.
private void initializeModel(String modelString) {
HOGMModelParsing parsingWithErrorCollecting = new HOGMModelParsing(modelString, modelErrors);
this.hogmModel = parsingWithErrorCollecting.getModel();
this.expressionBasedModel = hogmModel == null ? null : new HOGMExpressionBasedModel(hogmModel);
if (this.expressionBasedModel != null) {
this.expressionBasedModel.setProceduralAttachments(proceduralAttachments);
}
}
Aggregations