support to load a text file as corpus