def __init__(self, n_states=2, n_features=None, inference_method='qpbo', void_label=21): if void_label >= n_states: raise ValueError("void_label must be one of the states!") GraphCRF.__init__(self, n_states, n_features, inference_method) self.void_label = void_label