Serialization of single and multiple semantic tags