public Multimap < Integer , DependencyStructure > getAllDependenciesIndexedByHeadWordIndex ( ) { Multimap < Integer , DependencyStructure > map = HashMultimap . create ( ) ; for ( DependencyStructure dep : getAllDependencies ( ) ) { map . put ( dep . getHeadWordIndex ( ) , dep ) ; } return map ; }
Gets all dependency structures populated during parsing indexed by the word that projects the dependency .