Add qaneeded option to run.py (#27)

This commit is contained in:
Ayush Shridhar 2018-12-10 04:26:30 +05:30 коммит произвёл Marco
Родитель 89178e11ea
Коммит df9f06d9f5
1 изменённых файлов: 3 добавлений и 1 удалений

4
run.py
Просмотреть файл

@ -15,7 +15,7 @@ if __name__ == '__main__':
parser.add_argument('--lemmatization', help='Perform lemmatization (using spaCy)', action='store_true')
parser.add_argument('--download', help='Download data required for training', action='store_true')
parser.add_argument('--train', help='Perform training', action='store_true')
parser.add_argument('--goal', help='Goal of the classifier', choices=['bug', 'regression', 'tracking'], default='bug')
parser.add_argument('--goal', help='Goal of the classifier', choices=['bug', 'regression', 'tracking', 'qaneeded'], default='bug')
args = parser.parse_args()
if args.download:
@ -31,6 +31,8 @@ if __name__ == '__main__':
classes = labels.get_bugbug_labels(kind='regression', augmentation=True)
elif args.goal == 'tracking':
classes = labels.get_tracking_labels()
elif args.goal == 'qaneeded':
classes = labels.get_qa_needed_labels()
train.train(classes, model=model, lemmatization=args.lemmatization)