Combining Representation Learning with Logic for Language Processing