Only add the sample weight symbol if it is present.