Latent Semantic Analysis (LSA) in Python
This chapter presents the application of latent semantic analysis (LSA) in Python as a complement to Chap. 6, which covers semantic space modeling and LSA. In this chapter, we will present how to implement text analysis with LSA through annotated code in Python. In this example, we will run LSA over a dataset that includes 401 instances of both online and offline review sources from the Areias do Seixo Eco-Resort (Data available at https://archive.ics.uci.edu/ml/datasets/Eco-hotel).
KeywordsPython Latent semantic analysis Text analytics Text mining
The authors thank Jorge Fresneda Fernandez, Assistant Professor of Marketing at the Martin Tuchman School of Management, New Jersey Institute of Technology for contributing this chapter to the book.
- To learn more about the open-source Python software, visit https://wiki.python.org/moin/BeginnersGuide/Download