MCPcopy Create free account
hub / github.com/davisking/dlib / parse_trees_to_string

Function parse_trees_to_string

dlib/optimization/find_max_parse_cky.h:340–352  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

dotest1Function · 0.85

Calls 2

sizeMethod · 0.45
strMethod · 0.45

Tested by 1

dotest1Function · 0.68