Package org.maltparserx.core.feature.value

Examples of org.maltparserx.core.feature.value.SingleFeatureValue


        FeatureValue featureValue = featureVector.getFeatureValue(i);
        if (featureValue == null || (excludeNullValues == true && featureValue.isNullValue())) {
          sb.append("-1");
        } else {
          if (!featureValue.isMultiple()) {
            SingleFeatureValue singleFeatureValue = (SingleFeatureValue)featureValue;
            if (singleFeatureValue.getValue() == 1) {
              sb.append(singleFeatureValue.getIndexCode());
            } else if (singleFeatureValue.getValue() == 0) {
              sb.append("-1");
            } else {
              sb.append(singleFeatureValue.getIndexCode());
              sb.append(":");
              sb.append(singleFeatureValue.getValue());
            }
          } else { //if (featureValue instanceof MultipleFeatureValue) {
            Set<Integer> values = ((MultipleFeatureValue)featureValue).getCodes();
            int j=0;
            for (Integer value : values) {
View Full Code Here


    final int size = featureVector.size();
    for (int i = 1; i <= size; i++) {
      final FeatureValue featureValue = featureVector.getFeatureValue(i-1)
      if (featureValue != null && !(excludeNullValues == true && featureValue.isNullValue())) {
        if (!featureValue.isMultiple()) {
          SingleFeatureValue singleFeatureValue = (SingleFeatureValue)featureValue;
          final int index = featureMap.getIndex(i, singleFeatureValue.getIndexCode());
          if (index != -1 && singleFeatureValue.getValue() != 0) {
            featureList.add(index,singleFeatureValue.getValue());
          }
        }
        else { //if (featureValue instanceof MultipleFeatureValue) {
          for (Integer value : ((MultipleFeatureValue)featureValue).getCodes()) {
            final int v = featureMap.getIndex(i, value);
View Full Code Here

  protected String tableName;
  protected SymbolTableHandler tableHandler;
  protected int type;
 
  public TableFeature() throws MaltChainedException {
    featureValue = new SingleFeatureValue(this);
  }
View Full Code Here

TOP

Related Classes of org.maltparserx.core.feature.value.SingleFeatureValue

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.