コード例 #1
0
 private void addTemplatePairFeatures(int pidx, int aidx, ArrayList<String> feats) {
   if (prm.pairTemplates == null) {
     throw new IllegalStateException("Pair template set must be specified");
   }
   ext.addFeatures(prm.pairTemplates, LocalObservations.newPidxCidx(pidx, aidx), feats);
 }
コード例 #2
0
 private void addTemplateSoloFeatures(int idx, ArrayList<String> feats) {
   if (prm.soloTemplates == null) {
     throw new IllegalStateException("Solo template set must be specified");
   }
   ext.addFeatures(prm.soloTemplates, LocalObservations.newPidx(idx), feats);
 }