示例#1
0
 @Override
 FeatureKey getFeatureKey2(
     final List<InputWord> words,
     final SRLLabel role,
     final int predicateIndex,
     final int argumentIndex) {
   return hash(
       super.id,
       MorphaStemmer.stemToken(words.get(predicateIndex).word).hashCode(),
       role.hashCode(),
       Util.isCapitalized(words.get(argumentIndex).word) ? 7 : 13);
 }
示例#2
0
 private static String maybeBracket(final String input) {
   return Util.findNonNestedChar(input, "\\/") == -1 ? input : "(" + input + ")";
 }