public ArrayList<POS> classify(String fs, ParametersFloat params, int w1, InstancesTagger is, int n, short[] pos, Long2IntInterface li) { F2SF f = new F2SF(params.parameters); long vs[] = new long[_MAX]; int lemmas[]; if (options.noLemmas) lemmas = new int[is.length(n)]; else lemmas = is.plemmas[n]; addFeatures(is,n,fs,w1,pos,is.forms[n], lemmas, vs); ArrayList<POS> best = new ArrayList<POS>(types.length); for(int t=0;t<types.length;t++) { int p = t<<s_type; f.clear(); f.add(vs,li, p); POS px = new POS(t, f.score); best.add(px); } Collections.sort(best); return best; }