Text this: Physics consistent machine learning framework for inverse modeling with applications to ICF capsule implosions