function askForScores() {
    const done = this.async();
    this.prompt(
    {
        type    : 'list',
        name    : 'score',
        message : 'Which Score Methods your Medical decision support system should use?',
        choices : [{name:'Probabilistic', value:'prob'},{name:'TFIDF', value:'tfidf'}],
        validate: input => input ? true : 'A score must be set',
        store   : true
    }).then((answer) => {
        this.scores = {};
        this.scores[answer.score] = true;
        done();
    });
    
    
}
/**
 * Ask for the score that should be used
 */
Ask for the score that should be used
Ask for the score that should be used
function askForScores() {
    const done = this.async();
    this.prompt(
    {
        type    : 'list',
        name    : 'score',
        message : 'Which Score Methods your Medical decision support system should use?',
        choices : [{name:'Probabilistic', value:'prob'},{name:'TFIDF', value:'tfidf'}],
        validate: input => input ? true : 'A score must be set',
        store   : true
    }).then((answer) => {
        this.scores = {};
        this.scores[answer.score] = true;
        done();
    });
}
function askForScores ( ) { const done = this . async ( ) ; this . prompt ( { type : 'list' , name : 'score' , message : 'Which Score Methods your Medical decision support system should use?' , choices : [ { name : 'Probabilistic' , value : 'prob' } , { name : 'TFIDF' , value : 'tfidf' } ] , validate : input => input ? true : 'A score must be set' , store : true } ) . then ( ( answer ) => { this . scores = { } ; this . scores [ answer . score ] = true ; done ( ) ; } ) ; }
Ask for the score that should be used
Ask for the score that should be used