N-gram Dialog Systems