services/annotators/annotationSet.js
function setAnnotationSets(sets) {
  annotationSets = sets.map(function(s) {
    var r = '\\b(' + s.terms.join('|') + ')\\b';
    s.re = new RegExp(r, 'mi');
    return s;
  });
}
function setAnnotationSets(sets) {
  annotationSets = sets.map(function(s) {
    var r = '\\b(' + s.terms.join('|') + ')\\b';
    s.re = new RegExp(r, 'mi');
    return s;
  });
}
function setAnnotationSets ( sets ) { annotationSets = sets . map ( function ( s ) { var r = '\\b(' + s . terms . join ( '|' ) + ')\\b' ; s . re = new RegExp ( r , 'mi' ) ; return s ; } ) ; }
configure with these annotation sets
configure with these annotation sets