Package cc.mallet.fst.semi_supervised.constraints

Examples of cc.mallet.fst.semi_supervised.constraints.OneLabelL2RangeGEConstraints


            geConstraints.addConstraint(fi, prob, 1);
          }
          constraintsList.add(geConstraints);
        }
        else if (penaltyOption.value.equalsIgnoreCase("l2")) {
          OneLabelL2RangeGEConstraints geConstraints = new OneLabelL2RangeGEConstraints();
          for (int fi : constraints.keySet()) {
            double[][] dist = constraints.get(fi);
            for (int li = 0; li < dist.length; li++) {
              if (!Double.isInfinite(dist[li][0])) {
                geConstraints.addConstraint(fi, li, dist[li][0], dist[li][1], 1);
              }
            }
          }
          constraintsList.add(geConstraints);
        }
View Full Code Here

TOP

Related Classes of cc.mallet.fst.semi_supervised.constraints.OneLabelL2RangeGEConstraints

Copyright © 2018 www.massapicom. 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.