def newCollection(self, collection):

        self.currentCollection = ""
        # check, for each letter, that we have the corresponding dataset
        for l in collection:
            try:
                self.generateSettings(l)
            except __HOLE__:
                # no dataset for this letter!
                shapeLogger.error("No dataset available for letter <%s>. Skipping this letter." % l)
                continue

            self.currentCollection += l

        self.nextShapeLearnerToBeStarted = 0

        shapeLogger.info("Starting to work on word <%s>" % collection)

        try:
            self.collectionsLearnt.index(self.currentCollection)
            collectionSeenBefore = True
        except ValueError:
            collectionSeenBefore = False
            self.collectionsLearnt.append(self.currentCollection)

        self.initialiseShapeLearners()

        return collectionSeenBefore
dataset/ETHPy150Open chili-epfl/shape_learning/src/shape_learning/shape_learner_manager.py/ShapeLearnerManager.newCollection