lib/models.js
function Models(ml, base_url) {
  this.ml = ml;
  this.base_url = base_url;

  if (includes(base_url, 'classifiers')) {
    this.run_action = 'classify';
  } else if (includes(base_url, 'extractors')) {
    this.run_action = 'extract';
  } else {
    this.run_action = undefined;
  }
}
function Models(ml, base_url) {
  this.ml = ml;
  this.base_url = base_url;

  if (includes(base_url, 'classifiers')) {
    this.run_action = 'classify';
  } else if (includes(base_url, 'extractors')) {
    this.run_action = 'extract';
  } else {
    this.run_action = undefined;
  }
}
function Models ( ml , base_url ) { this . ml = ml ; this . base_url = base_url ; if ( includes ( base_url , 'classifiers' ) ) { this . run_action = 'classify' ; } else if ( includes ( base_url , 'extractors' ) ) { this . run_action = 'extract' ; } else { this . run_action = undefined ; } }
base class for endpoints that are in extractors, classifiers and workflows
base class for endpoints that are in extractors classifiers and workflows