Text this: Strengthening Probabilistic Graphical Models: The Purge-and-Merge Algorithm