Textract query when there are multiple occurance of targetted content.

0

Enter image description here The attached is a bank statement. What I want is to query the highest balance from the transaction table(in this case 868.85). But when i am querying i am not getting the correct answer, instead getting the other balances elsewhere in the document.

https://prnt.sc/zTIbVj8w3l-9

all the queries i tried failed. can anyone please help me how i can get data in such cases (when same name is available multiple times). thanks

  • Can you share any sample code you are using to query the data?

질문됨 일 년 전227회 조회
1개 답변
0
$queries=[];
$queries[] = [
          "Text" => "what is the highest among the balance?"
        ];
$queries[] = [
            "Text" => "what is the highest balance from account details?"
        ];


$options   = [
    'Document'      => [
          'Bytes' => file_get_contents($path)
    ],
     'FeatureTypes'  => ['FORMS', 'TABLES', 'QUERIES', 'SIGNATURES'], 
       'QueriesConfig' => ['Queries' => $queries]
 ];
$result = $this->textractClient->analyzeDocument($options);

i used aws php sdk and queried like above. will this help?

답변함 일 년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠