Feature-Extracting Functions for Neural Logic Rule Learning