/** * Determines if this utterance contains a relation with the given name. * * @param name the name of the relation of interest. * @return if relation is present */ public boolean hasRelation(String name) { return relations.isPresent(name); }
FeatureSet featureSet = tokenItem.getFeatures(); String nsw = ""; if (featureSet.isPresent("nsw")) { nsw = featureSet.getString("nsw");
int tokenLength = tokenVal.length(); if (tokenFeatures.isPresent("phones")) { wordRelation.addWord(tokenVal);
/** * Determines if this utterance contains a relation with the given name. * * @param name the name of the relation of interest. * @return if relation is present */ public boolean hasRelation(String name) { return relations.isPresent(name); }
FeatureSet featureSet = tokenItem.getFeatures(); String nsw = ""; if (featureSet.isPresent("nsw")) { nsw = featureSet.getString("nsw");
int tokenLength = tokenVal.length(); if (tokenFeatures.isPresent("phones")) { wordRelation.addWord(tokenVal);