Changed from H1B to F1 - can I claim US-India tax treaty?

A different scenario here: My first entry to the USA was in H1B. I switched to F1 (student) after few years. Based on SPT, with exemption for first 5 years on F1 as student, I am a non-resident for tax. Can I claim standard deduction based on US-India tax treaty? Or is there any criteria preventing me from being eligible for standard deduction. Until my first entry to the USA for work on H1B, I was a resident of India.