disco-dop icon indicating copy to clipboard operation
disco-dop copied to clipboard

operations on Tree objects may exceed maximum recursion depth

Open andreasvc opened this issue 10 years ago • 0 comments

e.g., a pathological sentence with >1000 words will be too deep to recurse when binarized.

  • Any function that directly recurs on the children of a tree is affected, as well as any function that uses Tree.subtrees().
  • Functions that work with an explicit stack are not affected, e.g. treetransforms.binarize().

andreasvc avatar Apr 19 '14 12:04 andreasvc