Soft Threshold Constraints for Pattern Mining