Updated generateCorpora to filter out certain segments.