private void tag(InstancesTagger is, SentenceData09 instance) { int length = instance.ppos.length; short[] pos = new short[instance.gpos.length]; float sc[] =new float[instance.ppos.length]; instance.ppos[0]= is2.io.CONLLReader09.ROOT_POS; pos[0]=(short)pipe.mf.getValue(ExtractorT2.POS, is2.io.CONLLReader09.ROOT_POS); for(int j = 1; j < length; j++) { short bestType = (short)pipe.fillFeatureVectorsOne( instance.forms[j],params, j, is,0,pos,this.li,sc); pos[j] = bestType; instance.ppos[j]= pipe.types[bestType]; } for(int j = 1; j < length; j++) { short bestType = (short)pipe.fillFeatureVectorsOne(instance.forms[j],params, j, is,0,pos,this.li,sc); instance.ppos[j]= pipe.types[bestType]; pos[j]=bestType; } }
HashSet<Integer> ps = pps.get(mf.getValue(POS,w[i1])); if (ps==null) { ps= new HashSet<Integer>(); pps.put(mf.getValue(POS,w[i1]), ps); if (i1+1<w.length) ps.add(mf.getValue(POS,w[i1+1])); if (instance1.ppos[k].contains("\\|")) is.pposs[num1][k] = (short)mf.getValue(FM, instance1.ppos[k].split("\\|")[1]);