Text this: Machine Learning Assisted Approach to Design Lattices With Prescribed Bandgap Characteristics