I am using the textacy method to get synonyms.
import textacy.resources rs = textacy.resources.ConceptNet() syn=rs.get_synonyms(\'happy\')
I get