I have installed ngram using pip install ngram. While I am running the following code
from ngram import NGram
c=NGram.compare('cereal_crop','cereals')
print c
I get the error ImportError: cannot import name NGram
P.S. A similar question has been asked previously using ngram in python, but that time the person who was getting error did not install ngram, so installing ngram worked. In my case I am getting the error in spite of ngram being installed.