edu.stanford.nlp.trees
Class Dependencies

java.lang.Object
  extended by edu.stanford.nlp.trees.Dependencies

public class Dependencies
extends java.lang.Object

Utilities for Dependency objects.

Author:
Christopher Manning

Nested Class Summary
static class Dependencies.DependentPuncTagRejectFilter<G extends Label,D extends Label,N>
           
static class Dependencies.DependentPuncWordRejectFilter<G extends Label,D extends Label,N>
           
 
Method Summary
static java.util.Comparator<Dependency> dependencyIndexComparator()
          A Comparator for Dependencies based on their dependent annotation.
static Counter<java.util.List<TypedDependency>> getTypedDependencyChains(java.util.List<TypedDependency> deps, int maxLength)
           
static java.util.Map<TreeGraphNode,java.util.List<TypedDependency>> govToDepMap(java.util.List<TypedDependency> deps)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

govToDepMap

public static java.util.Map<TreeGraphNode,java.util.List<TypedDependency>> govToDepMap(java.util.List<TypedDependency> deps)

getTypedDependencyChains

public static Counter<java.util.List<TypedDependency>> getTypedDependencyChains(java.util.List<TypedDependency> deps,
                                                                                int maxLength)

dependencyIndexComparator

public static java.util.Comparator<Dependency> dependencyIndexComparator()
A Comparator for Dependencies based on their dependent annotation. It will only work if the Labels at the ends of Dependencies have an index().

Returns:
A Comparator for Dependencies


Stanford NLP Group