Schemas
ImageElement
Bases: BaseModel
Image element.
Attributes:
Name | Type | Description |
---|---|---|
image |
Image
|
The image element. |
metadata |
Metadata
|
Metadata of the image element. |
Source code in parsestudio/parsers/schemas.py
Metadata
Bases: BaseModel
Metadata of the element.
Attributes:
Name | Type | Description |
---|---|---|
page_number |
int
|
The page number where the element is located. |
bbox |
List[float]
|
Bounding box coordinates of the element. |
Source code in parsestudio/parsers/schemas.py
ParserOutput
Bases: BaseModel
Parser output.
Attributes:
Name | Type | Description |
---|---|---|
text |
TextElement
|
The text element. |
tables |
List[TableElement]
|
List of table elements. |
images |
List[ImageElement]
|
List of image elements. |
Source code in parsestudio/parsers/schemas.py
TableElement
Bases: BaseModel
Table element.
Attributes:
Name | Type | Description |
---|---|---|
markdown |
str
|
The markdown representation of the table. |
dataframe |
DataFrame
|
The pandas DataFrame representation of the table. |
metadata |
Metadata
|
Metadata of the table. |
Source code in parsestudio/parsers/schemas.py
TextElement
Bases: BaseModel
Text element.
Attributes:
Name | Type | Description |
---|---|---|
text |
str
|
The text element. |