Skip to content

Instantly share code, notes, and snippets.

@sergiolucero
Created September 11, 2021 00:30
Show Gist options
  • Select an option

  • Save sergiolucero/d57b74dc9323ceba0dcc4abace810695 to your computer and use it in GitHub Desktop.

Select an option

Save sergiolucero/d57b74dc9323ceba0dcc4abace810695 to your computer and use it in GitHub Desktop.
Textract AWS boto3
import boto3
client = boto3.client('textract')
response = client.analyze_document(
Document={
'Bytes': b'bytes',
'S3Object': {
'Bucket': 'string',
'Name': 'string',
'Version': 'string'
}
},
FeatureTypes=[
'TABLES'|'FORMS',
],
HumanLoopConfig={
'HumanLoopName': 'string',
'FlowDefinitionArn': 'string',
'DataAttributes': {
'ContentClassifiers': [
'FreeOfPersonallyIdentifiableInformation'|'FreeOfAdultContent',
]
}
}
)
@sergiolucero

Copy link
Copy Markdown
Author

image

@sergiolucero

Copy link
Copy Markdown
Author

03 ,"01 ","","","PATENTES Y TASAS POR DERECHOS ","2,655,460 ",
03 ,"02 ","","","PERMISOS Y LICENCIAS ","2,846,259 ",
03 ,"03 ","","","PARTICIPACION EN IMPUESTO TERRITORIAL (ART. 37 DL 3063) ","4,575,000 ",

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment