Text this: A framework for regime identification and asset allocation