private Constituent createTreeConstituent(Tree<Pair<String,Integer>> depTree,double treeScore,String constituentLabel){
  Pair<String,Integer> label=depTree.getLabel();
  int start=label.getSecond();
  int end=label.getSecond() + 1;
  return createNewConstituent(start,end,constituentLabel,treeScore);
}

private Constituent createTreeConstituent ( Tree < Pair < String , Integer > > depTree , double treeScore , String constituentLabel ) { Pair < String , Integer > label = depTree . getLabel ( ) ; int start = label . getSecond ( ) ; int end = label . getSecond ( ) + 1 ; return createNewConstituent ( start , end , constituentLabel , treeScore ) ; }
assumes that the integer in the dependency tree label is always token offset in the text , i . e . is not sentence - relative .
