code: public static Model load(String modelPath) throws Exception {
          Model model = new CRFModel();
          if (model.checkModel(modelPath)) {
              return model.loadModel(modelPath);
          }
          model = new CRFppTxtModel();
  
          if (model.checkModel(modelPath)) {
              return model.loadModel(modelPath);
          }
          model = new WapitiCRFModel();
          if (model.checkModel(modelPath)) {
              return model.loadModel(modelPath);
          }
          throw new Exception("I did not know what type of model by file " + modelPath);
      }
docs: 模型读取
  
  @param path
  @return
  @return
  @throws Exception