directory generate from corpus.