def train(self, document, type=None):
        type, vector = self._vector(document, type)
        self._vectors.append((type, vector))
        self._classes[type] = self._classes.get(type, 0) + 1
Trains the classifier with the given document of the given type (i.e., class).
dataset/ETHPy150Open clips/pattern/pattern/vector/__init__.py/Classifier.train