Element modelRoot = new Element("model");
modelRoot.appendChild(ExtractTrainingData.getInstance().toXML());
MEMM memm = MEMMSingleton.getInstance();
if(memm != null) modelRoot.appendChild(memm.writeModel());
NESubtypes subtypes = NESubtypes.getInstance();
if(subtypes.OK) modelRoot.appendChild(subtypes.toXML());
return new Document(modelRoot);
}
/**Examines an XML document produced with MakeModel, and uses the data
* to initialise the relevant singletons.