class_docstr: Learner for Sequence Taggers.
class_docstr_tok: ["Learner","for","Sequence","Taggers","."]
docstr: prepare NERSequence for training
docstr_tok: ["prepare","NERSequence","for","training"]
code: def _prepare(self, data, train=True):
      """
      prepare NERSequence for training
      """
      if data is None:
          return None
      mode = "training" if train else "validation"
      if not data.prepare_called:
          print("preparing %s data ..." % (mode), end="")
          data.prepare()
          print("done.")
      return data
  
file_path: ktrain/ktrain/text/ner/learner.py
imports: from ...None import utils
  from ...core import GenLearner
  from ...imports import *
  from .None import metrics
label_desc: Use image node_id 7 for calling the NERLearner obj's underlying member method code with example usage: obj._prepare(data, train) and returns: data, None