use of com.joliciel.talismane.parser.TransitionSystem in project talismane by joliciel-informatique.
the class DependencyLabelSetFeature method checkInternal.
@Override
public FeatureResult<List<WeightedOutcome<String>>> checkInternal(ParseConfigurationWrapper context, RuntimeEnvironment env) {
TransitionSystem transitionSystem = TalismaneSession.get(sessionId).getTransitionSystem();
List<WeightedOutcome<String>> resultList = new ArrayList<WeightedOutcome<String>>();
for (String label : transitionSystem.getDependencyLabelSet().getDependencyLabels()) {
resultList.add(new WeightedOutcome<String>(label, 1.0));
}
return this.generateResult(resultList);
}
Aggregations