A Neurosymbolic Framework for Markov Logic Networks