Class to label according to constituent grammar