Artificial Intelligence for Text Generation: An Intellectual Property Perspective