parseCatOutput function

Parse Categorical Output