Change method getCategoryWeight to get Occurrence