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); }
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); }