Text this: Entropy learning and relevance criteria for neural network pruning