Controlling Neural Networks with Rule Representations