Text analytics as a service