Text analysis involves information retrieval , lexical analysis to study word frequency distributions , pattern recognition , tagging / annotation , information extraction , data mining techniques including link and association analysis , visualization , and predictive analytics .