MCPcopy Create free account
hub / github.com/Paper2Poster/Paper2Poster / parse

Method parse

docling/backend/xml/uspto_backend.py:1664–1677  ·  view source on GitHub ↗

Parse the first table from an xml content. Returns: A docling table data.

(self)

Source from the content-addressed store, hash-verified

1662 return dl_table
1663
1664 def parse(self) -> Optional[TableData]:
1665 """Parse the first table from an xml content.
1666
1667 Returns:
1668 A docling table data.
1669 """
1670 section = self._soup.find("table")
1671 if section is not None:
1672 table = self._parse_table(section)
1673 if table.num_rows == 0 or table.num_cols == 0:
1674 _log.warning("The parsed USPTO table is empty")
1675 return table
1676 else:
1677 return None
1678
1679
1680class HtmlEntity:

Callers 15

parseMethod · 0.95
parseMethod · 0.95
parseMethod · 0.95
text_extract_from_webFunction · 0.45
executeMethod · 0.45
_request_parseMethod · 0.45
_arequest_parseMethod · 0.45
runMethod · 0.45
runMethod · 0.45
__init__Method · 0.45
parse_function_callFunction · 0.45

Calls 2

_parse_tableMethod · 0.95
findMethod · 0.45

Tested by

no test coverage detected