Dealing with qualitative and quantitative features in legal domains