export default function(text,opts) { let method = opts.method let cleanedText = Utils.clean(Utils.parseHtml(text, opts), opts) switch(method) { case "combined": return Methods.combineNGramsAndNamedEntities(cleanedText,opts) case "ngram": return Methods.useNGrams(cleanedText,opts) case "namedentites": return Methods.useNamedEntities(cleanedText,opts) default: return Methods.combineNGramsAndNamedEntities(cleanedText,opts) } }