(self, treebuilder_class)
Register a treebuilder based on its advertised features.
Register a treebuilder based on its advertised features.
Register a treebuilder based on its advertised features .
def register(self, treebuilder_class):
        """Register a treebuilder based on its advertised features."""
        for feature in treebuilder_class.features:
            self.builders_for_feature[feature].insert(0, treebuilder_class)
        self.builders.insert(0, treebuilder_class)
def register ( self , treebuilder_class ) : for feature in treebuilder_class . features : self . builders_for_feature [ feature ] . insert ( 0 , treebuilder_class ) self . builders . insert ( 0 , treebuilder_class )