| 338 | |
| 339 | template <typename T, typename U> |
| 340 | std::string parse_trees_to_string ( |
| 341 | const std::vector<parse_tree_element<T> >& tree, |
| 342 | const std::vector<U>& words, |
| 343 | const T& tag_to_skip |
| 344 | ) |
| 345 | { |
| 346 | if (tree.size() == 0) |
| 347 | return ""; |
| 348 | |
| 349 | std::ostringstream sout; |
| 350 | impl::print_parse_tree_helper<false,true>(tree, words, 0, tag_to_skip, sout); |
| 351 | return sout.str(); |
| 352 | } |
| 353 | |
| 354 | // ----------------------------------------------------------------------------------------- |
| 355 |