Prepare the basic interfaces for NGram structure. Not complete yet.