error catching for nltk_synonyms (MemoryError)