assert added

This commit is contained in:
Alejandro Moreo Fernandez 2020-01-20 12:35:36 +01:00
parent c14e8226b1
commit 5bb5c913c0
1 changed files with 1 additions and 0 deletions

View File

@ -74,6 +74,7 @@ if __name__ == '__main__':
assert exists(op.dataset), 'Unable to find file '+str(op.dataset)
assert not (op.set_c != 1. and op.optimc), 'Parameter C cannot be defined along with optim_c option'
assert op.probs or op.supervised or op.pretrained, 'empty set of document embeddings is not allowed'
dataset_file = os.path.basename(op.dataset)