parameters: (self, arg)
docstring: :Parameters:
            - `arg` - a Chain object of a list of objects, each of which implements
              a 'train', 'test' and has a copy constructor
docstring_summary: :Parameters:
            - `arg` - a Chain object of a list of objects, each of which implements
              a 'train', 'test' and has a copy constructor
docstring_tokens: : Parameters : - arg - a Chain object of a list of objects each of which implements a train test and has a copy constructor
function: def __init__(self, arg) :
          """
          :Parameters:
            - `arg` - a Chain object of a list of objects, each of which implements
              a 'train', 'test' and has a copy constructor
          
          """
          Classifier.__init__(self)
  
          if arg.__class__ == self.__class__ :
              other = arg
              self.classifier = other.classifier.__class__(other.classifier)
              self.chain = [component.__class__(component)
                            for component in other.chain]
              
          elif type(arg) == type([]) :
              self.classifier = arg[-1].__class__(arg[-1])
              self.chain = [arg[i].__class__(arg[i])
                            for i in range(len(arg) - 1)]
function_tokens: def __init__ ( self , arg ) : Classifier . __init__ ( self ) if arg . __class__ == self . __class__ : other = arg self . classifier = other . classifier . __class__ ( other . classifier ) self . chain = [ component . __class__ ( component ) for component in other . chain ] elif type ( arg ) == type ( [ ] ) : self . classifier = arg [ - 1 ] . __class__ ( arg [ - 1 ] ) self . chain = [ arg [ i ] . __class__ ( arg [ i ] ) for i in range ( len ( arg ) - 1 ) ]