Text this: Constrained neural network based identification of harmonic sources/