fix n-gram service import