Update CorpusProcess for inputing sentences in addition to documents