Text this: Hidden Markov models and neural networks in formation of investment portfolio