getCorpusIds function

Gets a list of corpus IDs