

def _resolve(self, fileids, categories):
    if ((fileids is not None) and (fileids is not None)):
        raise ValueError('Specify fileids or categories, not both')
    if (categories is not None):
        return self.fileids(categories)
    else:
        return fileids

dataset/ETHPy150Open nltk/nltk/nltk/corpus/reader/plaintext.py CategorizedPlaintextCorpusReader._resolve/VarMisuse@24/28 `categories`->`fileids`