Lawyers are turning to machine learning to ease caseloads