MCPcopy Create free account
hub / github.com/chatdoc-com/OCRFlux / bracket

Method bracket

eval/eval_table_to_html_nanonets.py:53–62  ·  view source on GitHub ↗

Show tree using brackets notation

(self)

Source from the content-addressed store, hash-verified

51 self.children = list(children)
52
53 def bracket(self):
54 """Show tree using brackets notation"""
55 if self.tag == 'td':
56 result = '"tag": %s, "colspan": %d, "rowspan": %d, "text": %s' % \
57 (self.tag, self.colspan, self.rowspan, self.content)
58 else:
59 result = '"tag": %s' % self.tag
60 for child in self.children:
61 result += child.bracket()
62 return "{{{}}}".format(result)
63
64
65class CustomConfig(Config):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected