class_docstr: ```
  Wrapper for Transformer datasets.
  ```
class_docstr_tok: ["``","`","Wrapper","for","Transformer","datasets",".","``","`"]
code: def nclasses(self):
      return self.y.shape[1]
  
file_path: ktrain/ktrain/text/dataset.py
imports: from ..dataset import SequenceDataset
  from ..imports import *
label_desc: Use image node_id 7 for calling the TransformerDataset obj's underlying member method code with example usage: obj.nclasses() and returns: self