英文:
Document AI Bank Statement Processor
问题
在 Document AI 的银行对账单处理器中,输出的 JSON 包含有关检测到的字段的信息。由于它是银行对账单,可能会在同一对账单中包含两个账户。
AI 能够检测到这些账户以及它们各自的起始和结束余额,但它是以线性方式呈现的,一个账户的数据后跟着另一个账户,我不能确定一个账户的余额是在另一个账户之后。
例如:输出的实体可能如下:
"beginning_balance": 2344 美元
"ending_balance": 7578 美元
"account_type": "type2"
"beginning_balance": 3455 美元
"ending_balance": 4578 美元
在我目测文档之前,我无法确定哪个余额属于哪个账户。
是否有一种方法可以以结构化的方式解析输出,或者我只需要使用自己的逻辑将先出现的余额映射到第一个账户类型。
英文:
In Document AI's bank statement processor the output json gives info about the fields detected. Since it's bank statement it's possible to have two accounts in same statement.
The AI is able to detect the accounts and their respective beginning and ending balances but it's in a linear fashion where one account data is followed by other not sure whether the balance of one account will be after the other.
eg: the output entities are like
"beginning_balance": 2344 USD
"ending_balance": 7578 USD
"account_type": "type2"
"beginning_balance": 3455 USD
"ending_balance": 4578 USD
not sure which balance belongs to which account until I visually take a look at the document.
Is there a way the output can be parsed in a structured manner or just I need to use my own logic to map balance which comes first to first account type
答案1
得分: 1
以下是翻译好的内容:
"Would you be able to provide a sample document that contains multiple account statements?"
银行对账单解析器旨在处理每个请求中的单个对账单。
如果可以按页面拆分,您可以使用贷款拆分器和分类器来识别页面拆分点并分别处理它们。
如果两份对账单在同一页上,那么您将需要创建后处理逻辑将每份对账单映射到特定的账户。您还可以考虑创建一个自定义文档提取器来处理这种特定格式的文档。
英文:
Would you be able to provide a sample document that contains multiple account statements?
The Bank Statement Parser is intended to handle a single statement with each request.
If it's possible to split by pages, then you can use the Lending Splitter & Classifier to identify page split points and process them separately.
If both statements are on the same page, then you would need to create post-processing logic to map each statement to the particular account. You can also look into creating a Custom Document Extractor to handle this specific format of document.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论