class_docstr: ```
  Abstract class to preprocess data
  ```
class_docstr_tok: ["``","`","Abstract","class","to","preprocess","data","``","`"]
code: def _save_model(self, fpath):
      if U.is_crf(self.model):  # TODO: fix/refactor this
          from .text.ner.anago.layers import crf_loss
  
          self.model.compile(loss=crf_loss, optimizer=U.DEFAULT_OPT)
      model_path = os.path.join(fpath, U.MODEL_NAME)
      self.model.save(model_path, save_format="h5")
      return
  
file_path: ktrain/ktrain/predictor.py
imports: from .None import utils
  from .imports import *
label_desc: Use image node_id 6 for calling the Predictor obj's underlying member method code with example usage: obj._save_model(fpath) without return types