edu.illinois.cs.cogcomp.lbjava.classify.Feature.conjunction()方法的使用及代码示例

x33g5p2x  于2022-01-19 转载在 其他  
字(11.6k)|赞(0)|评价(0)|浏览(114)

本文整理了Java中edu.illinois.cs.cogcomp.lbjava.classify.Feature.conjunction()方法的一些代码示例,展示了Feature.conjunction()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Feature.conjunction()方法的具体详情如下:
包路径:edu.illinois.cs.cogcomp.lbjava.classify.Feature
类名称:Feature
方法名:conjunction

Feature.conjunction介绍

[英]Create a feature representing the conjunction of this feature with the given argument feature.
[中]创建一个特征,表示此特征与给定参数特征的结合。

代码示例

代码示例来源:origin: edu.illinois.cs.cogcomp/illinois-pos

public Feature featureValue(Object __example) {
  if (!(__example instanceof Token)) {
    String type = __example == null ? "null" : __example.getClass().getName();
    System.err
        .println("Classifier 'L1bL1aU(Token)' defined on line 114 of POSUnknown.lbj received '"
            + type + "' as input.");
    new Exception().printStackTrace();
    System.exit(1);
  }
  Feature __result;
  __result = left.featureValue(__example).conjunction(right.featureValue(__example), this);
  return __result;
}

代码示例来源:origin: CogComp/cogcomp-nlp

public Feature featureValue(Object __example) {
  if (!(__example instanceof Token)) {
    String type = __example == null ? "null" : __example.getClass().getName();
    System.err
        .println("Classifier 'L1aL2aU(Token)' defined on line 122 of POSUnknown.lbj received '"
            + type + "' as input.");
    new Exception().printStackTrace();
    System.exit(1);
  }
  Feature __result;
  __result = left.featureValue(__example).conjunction(right.featureValue(__example), this);
  return __result;
}

代码示例来源:origin: CogComp/cogcomp-nlp

public Feature featureValue(Object __example) {
  if (!(__example instanceof Token)) {
    String type = __example == null ? "null" : __example.getClass().getName();
    System.err
        .println("Classifier 'L1bL1a(Token)' defined on line 139 of POSKnown.lbj received '"
            + type + "' as input.");
    new Exception().printStackTrace();
    System.exit(1);
  }
  Feature __result;
  __result = left.featureValue(__example).conjunction(right.featureValue(__example), this);
  return __result;
}

代码示例来源:origin: CogComp/cogcomp-nlp

public Feature featureValue(Object __example) {
  if (!(__example instanceof Token)) {
    String type = __example == null ? "null" : __example.getClass().getName();
    System.err
        .println("Classifier 'L1bL1aU(Token)' defined on line 114 of POSUnknown.lbj received '"
            + type + "' as input.");
    new Exception().printStackTrace();
    System.exit(1);
  }
  Feature __result;
  __result = left.featureValue(__example).conjunction(right.featureValue(__example), this);
  return __result;
}

代码示例来源:origin: CogComp/cogcomp-nlp

public Feature featureValue(Object __example) {
  if (!(__example instanceof Token)) {
    String type = __example == null ? "null" : __example.getClass().getName();
    System.err
        .println("Classifier 'L1aL2a(Token)' defined on line 147 of POSKnown.lbj received '"
            + type + "' as input.");
    new Exception().printStackTrace();
    System.exit(1);
  }
  Feature __result;
  __result = left.featureValue(__example).conjunction(right.featureValue(__example), this);
  return __result;
}

代码示例来源:origin: edu.illinois.cs.cogcomp/illinois-pos

public Feature featureValue(Object __example) {
  if (!(__example instanceof Token)) {
    String type = __example == null ? "null" : __example.getClass().getName();
    System.err
        .println("Classifier 'L1bL1a(Token)' defined on line 139 of POSKnown.lbj received '"
            + type + "' as input.");
    new Exception().printStackTrace();
    System.exit(1);
  }
  Feature __result;
  __result = left.featureValue(__example).conjunction(right.featureValue(__example), this);
  return __result;
}

代码示例来源:origin: edu.illinois.cs.cogcomp/illinois-pos

public Feature featureValue(Object __example) {
  if (!(__example instanceof Token)) {
    String type = __example == null ? "null" : __example.getClass().getName();
    System.err
        .println("Classifier 'L1aL2aU(Token)' defined on line 122 of POSUnknown.lbj received '"
            + type + "' as input.");
    new Exception().printStackTrace();
    System.exit(1);
  }
  Feature __result;
  __result = left.featureValue(__example).conjunction(right.featureValue(__example), this);
  return __result;
}

代码示例来源:origin: edu.illinois.cs.cogcomp/illinois-pos

public Feature featureValue(Object __example) {
  if (!(__example instanceof Token)) {
    String type = __example == null ? "null" : __example.getClass().getName();
    System.err
        .println("Classifier 'L1aL2a(Token)' defined on line 147 of POSKnown.lbj received '"
            + type + "' as input.");
    new Exception().printStackTrace();
    System.exit(1);
  }
  Feature __result;
  __result = left.featureValue(__example).conjunction(right.featureValue(__example), this);
  return __result;
}

代码示例来源:origin: CogComp/cogcomp-nlp

public Feature featureValue(Object __example) {
  if (!(__example instanceof Token)) {
    String type = __example == null ? "null" : __example.getClass().getName();
    System.err
        .println("Classifier 'L2bL1b(Token)' defined on line 131 of POSKnown.lbj received '"
            + type + "' as input.");
    new Exception().printStackTrace();
    System.exit(1);
  }
  Feature __result;
  __result = left.featureValue(__example).conjunction(right.featureValue(__example), this);
  return __result;
}

代码示例来源:origin: CogComp/cogcomp-nlp

public Feature featureValue(Object __example) {
  if (!(__example instanceof Token)) {
    String type = __example == null ? "null" : __example.getClass().getName();
    System.err
        .println("Classifier 'L2bL1bU(Token)' defined on line 106 of POSUnknown.lbj received '"
            + type + "' as input.");
    new Exception().printStackTrace();
    System.exit(1);
  }
  Feature __result;
  __result = left.featureValue(__example).conjunction(right.featureValue(__example), this);
  return __result;
}

代码示例来源:origin: edu.illinois.cs.cogcomp/illinois-pos

public Feature featureValue(Object __example) {
  if (!(__example instanceof Token)) {
    String type = __example == null ? "null" : __example.getClass().getName();
    System.err
        .println("Classifier 'L2bL1bU(Token)' defined on line 106 of POSUnknown.lbj received '"
            + type + "' as input.");
    new Exception().printStackTrace();
    System.exit(1);
  }
  Feature __result;
  __result = left.featureValue(__example).conjunction(right.featureValue(__example), this);
  return __result;
}

代码示例来源:origin: edu.illinois.cs.cogcomp/illinois-pos

public Feature featureValue(Object __example) {
  if (!(__example instanceof Token)) {
    String type = __example == null ? "null" : __example.getClass().getName();
    System.err
        .println("Classifier 'L2bL1b(Token)' defined on line 131 of POSKnown.lbj received '"
            + type + "' as input.");
    new Exception().printStackTrace();
    System.exit(1);
  }
  Feature __result;
  __result = left.featureValue(__example).conjunction(right.featureValue(__example), this);
  return __result;
}

代码示例来源:origin: edu.illinois.cs.cogcomp/illinois-md

public FeatureVector classify(Object __example)
{
 if (!(__example instanceof Relation))
 {
  String type = __example == null ? "null" : __example.getClass().getName();
  System.err.println("Classifier 'combinedFeatures$$1(Relation)' defined on line 237 of extent.lbj received '" + type + "' as input.");
  new Exception().printStackTrace();
  System.exit(1);
 }
 FeatureVector __result;
 __result = new FeatureVector();
 FeatureVector leftVector = left.classify(__example);
 int N = leftVector.featuresSize();
 Feature rf = right.featureValue(__example);
 for (int i = 0; i < N; ++i)
 {
  Feature lf = leftVector.getFeature(i);
  __result.addFeature(lf.conjunction(rf, this));
 }
 return __result;
}

代码示例来源:origin: edu.illinois.cs.cogcomp/md

public FeatureVector classify(Object __example)
{
 if (!(__example instanceof Relation))
 {
  String type = __example == null ? "null" : __example.getClass().getName();
  System.err.println("Classifier 'combinedFeatures$$3(Relation)' defined on line 238 of extent.lbj received '" + type + "' as input.");
  new Exception().printStackTrace();
  System.exit(1);
 }
 FeatureVector __result;
 __result = new FeatureVector();
 FeatureVector leftVector = left.classify(__example);
 int N = leftVector.featuresSize();
 Feature rf = right.featureValue(__example);
 for (int i = 0; i < N; ++i)
 {
  Feature lf = leftVector.getFeature(i);
  __result.addFeature(lf.conjunction(rf, this));
 }
 return __result;
}

代码示例来源:origin: CogComp/cogcomp-nlp

public FeatureVector classify(Object __example)
{
 if (!(__example instanceof Relation))
 {
  String type = __example == null ? "null" : __example.getClass().getName();
  System.err.println("Classifier 'combinedFeatures$$2(Relation)' defined on line 237 of extent.lbj received '" + type + "' as input.");
  new Exception().printStackTrace();
  System.exit(1);
 }
 FeatureVector __result;
 __result = new FeatureVector();
 FeatureVector leftVector = left.classify(__example);
 int N = leftVector.featuresSize();
 Feature rf = right.featureValue(__example);
 for (int i = 0; i < N; ++i)
 {
  Feature lf = leftVector.getFeature(i);
  __result.addFeature(lf.conjunction(rf, this));
 }
 return __result;
}

代码示例来源:origin: CogComp/cogcomp-nlp

public FeatureVector classify(Object __example)
{
 if (!(__example instanceof Relation))
 {
  String type = __example == null ? "null" : __example.getClass().getName();
  System.err.println("Classifier 'combinedFeatures$$3(Relation)' defined on line 238 of extent.lbj received '" + type + "' as input.");
  new Exception().printStackTrace();
  System.exit(1);
 }
 FeatureVector __result;
 __result = new FeatureVector();
 FeatureVector leftVector = left.classify(__example);
 int N = leftVector.featuresSize();
 Feature rf = right.featureValue(__example);
 for (int i = 0; i < N; ++i)
 {
  Feature lf = leftVector.getFeature(i);
  __result.addFeature(lf.conjunction(rf, this));
 }
 return __result;
}

代码示例来源:origin: edu.illinois.cs.cogcomp/md

public FeatureVector classify(Object __example)
{
 if (!(__example instanceof Relation))
 {
  String type = __example == null ? "null" : __example.getClass().getName();
  System.err.println("Classifier 'combinedFeatures$$1(Relation)' defined on line 237 of extent.lbj received '" + type + "' as input.");
  new Exception().printStackTrace();
  System.exit(1);
 }
 FeatureVector __result;
 __result = new FeatureVector();
 FeatureVector leftVector = left.classify(__example);
 int N = leftVector.featuresSize();
 Feature rf = right.featureValue(__example);
 for (int i = 0; i < N; ++i)
 {
  Feature lf = leftVector.getFeature(i);
  __result.addFeature(lf.conjunction(rf, this));
 }
 return __result;
}

代码示例来源:origin: CogComp/cogcomp-nlp

public FeatureVector classify(Object __example)
{
 if (!(__example instanceof Relation))
 {
  String type = __example == null ? "null" : __example.getClass().getName();
  System.err.println("Classifier 'combinedFeatures$$1(Relation)' defined on line 237 of extent.lbj received '" + type + "' as input.");
  new Exception().printStackTrace();
  System.exit(1);
 }
 FeatureVector __result;
 __result = new FeatureVector();
 FeatureVector leftVector = left.classify(__example);
 int N = leftVector.featuresSize();
 Feature rf = right.featureValue(__example);
 for (int i = 0; i < N; ++i)
 {
  Feature lf = leftVector.getFeature(i);
  __result.addFeature(lf.conjunction(rf, this));
 }
 return __result;
}

代码示例来源:origin: edu.illinois.cs.cogcomp/illinois-md

public FeatureVector classify(Object __example)
{
 if (!(__example instanceof Relation))
 {
  String type = __example == null ? "null" : __example.getClass().getName();
  System.err.println("Classifier 'combinedFeatures$$4(Relation)' defined on line 238 of extent.lbj received '" + type + "' as input.");
  new Exception().printStackTrace();
  System.exit(1);
 }
 FeatureVector __result;
 __result = new FeatureVector();
 FeatureVector leftVector = left.classify(__example);
 int N = leftVector.featuresSize();
 Feature rf = right.featureValue(__example);
 for (int i = 0; i < N; ++i)
 {
  Feature lf = leftVector.getFeature(i);
  __result.addFeature(lf.conjunction(rf, this));
 }
 return __result;
}

代码示例来源:origin: CogComp/cogcomp-nlp

public FeatureVector classify(Object __example)
{
 if (!(__example instanceof Relation))
 {
  String type = __example == null ? "null" : __example.getClass().getName();
  System.err.println("Classifier 'combinedFeatures$$5(Relation)' defined on line 239 of extent.lbj received '" + type + "' as input.");
  new Exception().printStackTrace();
  System.exit(1);
 }
 FeatureVector __result;
 __result = new FeatureVector();
 FeatureVector leftVector = left.classify(__example);
 int N = leftVector.featuresSize();
 for (int j = 1; j < N; ++j)
 {
  Feature rf = leftVector.getFeature(j);
  for (int i = 0; i < j; ++i)
   __result.addFeature(leftVector.getFeature(i).conjunction(rf, this));
 }
 __result.sort();
 return __result;
}

相关文章