업계에서는 팁 문화가 일반적이고 식사에 세금이 부과된다. 따라서 영수증에서 청구 금액, 세
금, 팁, 총지급액이라는 네 가지 수치를 추출해야 한다.
544
에이전트 시대의 AI 시스템 설계
수치 추출 코드는 이를테면 다음과 같은 네 가지 수치를 반환할 것이다.
312.32,28.76,60,401.08
마지막 수치는 총지급액이다. 따라서 앞의 세 수치의 합과 같아야 한다. 이는 마지막 수치를
체
크섬
checksum
용도로 사용할 수 있다는 뜻이다. 만일 세 수치의 합이 마지막 수치와 다르면 수치
들을 잘못 추출한 것이다.
그런데 어떠한 이유로(영수증 이미지에 얼룩이 있는 등) 추출 코드가 네 수치 중 셋만 반환하
는 상황도 대비해야 한다. 예를 들어 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.
O’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
I wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
I’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
I'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.