Synonyms in Python can be easily found using NLTK or Spacy for a single word like Cat, Dog, Happy, or sad But when it comes to compound words like Artificial- Intelligence or Call-Taxi the language processor always gives output for each and every token instead of giving synonyms for the entire word .i.e Artificial-synoyms-unnatural, feigned, false & Intelligence- intellect, brain, mind. But I need to find synonyms for Artificial Intelligence as a single compound word which should yield a result like robots, system intelligence &, etc. I would be happy if someone provides me a small snippet.
> from nltk.corpus import wordnet as wn print
> wn.synset("eat.v.01").lemma_names # prints synonyms of eat print
> wn.synset("Artificial Intelligence").lemma_names # throws WordNetError
Using Artifical_Intelligence with an underscore also does not work.