bidirectional-classifier