예제 #1
0
 public void dumpFeatures() throws IOException {
   FeatureExtractor fe = new FeatureExtractor(model, true);
   fe.dumpMode = true;
   for (Sentence lSent : lSentences) {
     ModelSentence mSent = new ModelSentence(lSent.T());
     fe.computeFeatures(lSent, mSent);
   }
 }
예제 #2
0
  public void extractFeatures() throws IOException {
    System.out.println("Extracting features");
    FeatureExtractor fe = new FeatureExtractor(model, true);
    for (Sentence lSent : lSentences) {

      ModelSentence mSent = new ModelSentence(lSent.T());
      fe.computeFeatures(lSent, mSent);
      mSentences.add(mSent);
    }
  }