Use extraction algorithm in CorpusGenerator