In the below code:`
function extract_nouns_from_reviews (reviews,callback){
reviews.forEach(function(review,index){
wordpos.getNouns(review,function(result){
result.forEach(function(noun,index){
noun_set.add(noun);
//callback(noun_set);
});
});
});
//callback(noun_set);
}
How do I return the result - noun_set via the callback ? Or is there any better way to accomplish this task ?