Semantic tags generation and retrieval for online advertising