Creates an n-gram extraction tool.