int function ( Transition arg0 ) { assert ( TreeWalkModel . NUM_POP_POSITIONS == 2 ) : "srini_string" ; if ( arg0 . position == arg0 . numPositions - 1 ) { return 1 ; } else { return 0 ; } }
we condition only on whether we are popping from the ends of the constituent . 0 : beginning 1 : middle 2 : end todo perhaps we should have `` middle '' contribute to the beginning and end as well . concode_field_sep int tagGroup concode_elem_sep int[] tagClasses concode_elem_sep Map<Integer,List<Pair<Tree<String>,int[]>>> pathsToLeaf concode_elem_sep Tree<String> tree concode_elem_sep TransType type concode_elem_sep double[] transitionSums concode_elem_sep Map<Tree<String>,SyntacticProfile> cache concode_elem_sep int numPositions concode_elem_sep Map<Tree<String>,Integer> leafPositions concode_elem_sep List<Transition>[][] pathCache concode_elem_sep double[][] transitionCostCache concode_elem_sep int position concode_elem_sep int prevPosition concode_field_sep void computeProfile concode_elem_sep int getChange concode_elem_sep List<Transition> getTransitionPath concode_elem_sep String toString concode_elem_sep void createPathsToLeaf concode_elem_sep SyntacticProfile getSentenceProfile concode_elem_sep boolean isMove