load corpus from directory