docstr: Returns the prediction of the model on the given test data.
  
  Args:
      x_test : array-like, shape = (n_samples, sent_length)
      Test samples.
  
  Returns:
      y_pred : array-like, shape = (n_smaples, sent_length)
      Prediction labels for x.
docstr_tok: ["Returns","the","prediction","of","the","model","on","the","given","test","data",".","Args",":","x_test",":","array-like",",","shape","=","(","n_samples",",","sent_length",")","Test","samples",".","Returns",":","y_pred",":","array-like",",","shape","=","(","n_smaples",",","sent_length",")","Prediction","labels","for","x","."]
code: def predict(self, x_test):
      """Returns the prediction of the model on the given test data.
  
      Args:
          x_test : array-like, shape = (n_samples, sent_length)
          Test samples.
  
      Returns:
          y_pred : array-like, shape = (n_smaples, sent_length)
          Prediction labels for x.
      """
      if self.model:
          lengths = map(len, x_test)
          x_test = self.p.transform(x_test)
          y_pred = self.model.predict(x_test)
          y_pred = self.p.inverse_transform(y_pred, lengths)
          return y_pred
      else:
          raise OSError("Could not find a model. Call load(dir_path).")
  
file_path: anago/anago/wrapper.py
imports: from seqeval.metrics import f1_score
  from anago.models import BiLSTMCRF, save_model, load_model
  from anago.preprocessing import IndexTransformer
  from anago.tagger import Tagger
  from anago.trainer import Trainer
  from anago.utils import filter_embeddings
label_desc: Use image node_id 3 for calling the Sequence obj's underlying member method code with example usage: obj.predict(x_test) and returns: y_pred