Updated function to parse tag generated by semantic.

Author:yangyingchao, 2013-03-11