N-gram representation