class_docstr: A model API that tags input sentence.
  
  Attributes:
      model: Model.
      preprocessor: Transformer. Preprocessing data for feature extraction.
      tokenizer: Tokenize input sentence. Default tokenizer is `str.split`.
code: def _get_tags(self, pred):
      tags = self.preprocessor.inverse_transform([pred])
      tags = tags[0]  # reduce batch dimension
  
      return tags
  
file_path: ktrain/ktrain/text/ner/anago/tagger.py
imports: from ....imports import *
  from ..None import metrics
label_desc: Use image node_id 4 for calling the Tagger obj's underlying member method code with example usage: obj._get_tags(pred) and returns: tags