Tree decoder
Parse segment_id