Text this: Entropy-based attention for inference in probabilistic graphical models