| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.Comprehend.Types.Block
Description
Synopsis
- data Block = Block' {}
- newBlock :: Block
- block_blockType :: Lens' Block (Maybe BlockType)
- block_geometry :: Lens' Block (Maybe Geometry)
- block_id :: Lens' Block (Maybe Text)
- block_page :: Lens' Block (Maybe Int)
- block_relationships :: Lens' Block (Maybe [RelationshipsListItem])
- block_text :: Lens' Block (Maybe Text)
Documentation
Information about each word or line of text in the input document.
For additional information, see Block in the Amazon Textract API reference.
See: newBlock smart constructor.
Constructors
| Block' | |
Fields
| |
Instances
Create a value of Block with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:blockType:Block', block_blockType - The block represents a line of text or one word of text.
- WORD - A word that's detected on a document page. A word is one or more ISO basic Latin script characters that aren't separated by spaces.
- LINE - A string of tab-delimited, contiguous words that are detected on a document page
$sel:geometry:Block', block_geometry - Co-ordinates of the rectangle or polygon that contains the text.
$sel:id:Block', block_id - Unique identifier for the block.
$sel:page:Block', block_page - Page number where the block appears.
$sel:relationships:Block', block_relationships - A list of child blocks of the current block. For example, a LINE object
has child blocks for each WORD block that's part of the line of text.
$sel:text:Block', block_text - The word or line of text extracted from the block.
block_blockType :: Lens' Block (Maybe BlockType) Source #
The block represents a line of text or one word of text.
- WORD - A word that's detected on a document page. A word is one or more ISO basic Latin script characters that aren't separated by spaces.
- LINE - A string of tab-delimited, contiguous words that are detected on a document page
block_geometry :: Lens' Block (Maybe Geometry) Source #
Co-ordinates of the rectangle or polygon that contains the text.
block_relationships :: Lens' Block (Maybe [RelationshipsListItem]) Source #
A list of child blocks of the current block. For example, a LINE object has child blocks for each WORD block that's part of the line of text.