Text this: Estimating cosmological parameters and reconstructing Hubble constant with artificial neural networks