Examples of addFeature()


Examples of com.clearnlp.classification.vector.SparseFeatureVector.addFeature()

      value = vector.getValue(i);
     
      if ((map = m_features.get(type)) != null && (index = map.get(value)) > 0)
      {
        if (sparse.hasWeight())
          sparse.addFeature(index, vector.getWeight(i));
        else
          sparse.addFeature(index);
      }
    }
   
View Full Code Here

Examples of com.clearnlp.classification.vector.StringFeatureVector.addFeature()

   
    StringFeatureVector vector = new StringFeatureVector(hasWeight);
    int i, size = tmp.length;
   
    for (i=1; i<size; i++)
      vector.addFeature(tmp[i]);
   
    return new StringInstance(label, vector);
  }
}
View Full Code Here

Examples of com.emc.esu.api.ServiceInformation.addFeature()

              }
              if("x-emc-features".equalsIgnoreCase(key)) {
                for(String val : map.get(key)) {
                  String[] features = val.split(",");
                  for(String feature : features) {
                    si.addFeature(feature.trim());
                  }
                }
               
              }
            }
View Full Code Here

Examples of com.hp.hpl.jena.sdb.store.FeatureSet.addFeature()

        for ( Resource r : x )
        {
            String n = GraphUtils.getStringValue(r, AssemblerVocab.featureNameProperty) ;
            String v = GraphUtils.getStringValue(r, AssemblerVocab.featureValueProperty) ;
            Feature f = new Feature(new Feature.Name(n), v) ;
            fSet.addFeature(f) ;
        }
       
        StoreDesc storeDesc = new StoreDesc(layoutName, dbType, fSet) ;
        storeDesc.connDesc = sdbConnDesc ;
View Full Code Here

Examples of com.meapsoft.EDLChunk.addFeature()

    {
      EDLChunk oldChunk = (EDLChunk)selectedChunks.elementAt(i);
   
      EDLChunk newChunk =
        new EDLChunk(oldChunk.srcFile, oldChunk.startTime, oldChunk.length, currentTime);
      newChunk.addFeature(oldChunk.getFeatures());
      eDLOutputFile.chunks.add(newChunk);
     
      currentTime += oldChunk.length;
    }
View Full Code Here

Examples of com.meapsoft.FeatChunk.addFeature()

      //featOutputFile.chunks.add(selectedChunks.elementAt(i));
      FeatChunk oldChunk = (FeatChunk)selectedChunks.elementAt(i);
   
      FeatChunk newChunk =
        new FeatChunk(oldChunk.srcFile, currentTime, oldChunk.length);
      newChunk.addFeature(oldChunk.getFeatures());
      featOutputFile.chunks.add(newChunk);
      currentTime += oldChunk.length;
    }

    int numFeatDescs = featInputFile.featureDescriptions.size();
View Full Code Here

Examples of com.meapsoft.FeatChunk.addFeature()

      feats[0] = value;

      if (clearOriginalFeatures)
        curChunk.clearFeatures();

      curChunk.addFeature(feats);
    }
  }

  public String description()
  {
View Full Code Here

Examples of com.meapsoft.FeatChunk.addFeature()

      feats[0] = value;
 
      if (clearOriginalFeatures)
        curChunk.clearFeatures();
 
      curChunk.addFeature(feats);
     
      //System.out.println("chunk: " + chunk + " length: " + curChunk.length + " median: " +  medianLength + " diff: " + value);
    }
   
  }
View Full Code Here

Examples of com.meapsoft.FeatChunk.addFeature()

      ChunkVisInfo cVI = (ChunkVisInfo)events.elementAt(i);
      if (cVI.selected)
      {
        FeatChunk c = new FeatChunk(cVI.srcFile, cVI.startTime,
          cVI.length);
        c.addFeature(cVI.getFeatures());
        c.comment = cVI.comment;
        v.add(c);
      }
    }
   
View Full Code Here

Examples of com.meapsoft.FeatChunk.addFeature()

      ChunkVisInfo cVI = (ChunkVisInfo) events.get(i);
      if (cVI.selected)
      {
        FeatChunk c = new FeatChunk(cVI.srcFile, cVI.startTime,
            cVI.length, null);
        c.addFeature(cVI.getFeatures());
        c.comment = cVI.comment;
        v.add(c);
      }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.