Test Summary Tool: ```bash curl -X POST "http://localhost:8080/api/analyze_html" -F "file=@example.html;type=text/html" ``` response: ```json { "summary": "This payslip shows earnings including base salary, allowances, and overtime pay, with deductions for advances, loans, and CPF, resulting in a net pay of 2363.40 or 4213.40. CPF contributions are also detailed.", "earnings": [ "基 本工资 (Basic Salary): 1800.00", "总加班费 (Total Overtime): 368.16", "[加班1.5倍] (Overtime 1.5x): 141.60", "[加班2.0倍] (Overtime 2.0x): 226.56", "住宿补贴 (Housing Allowance): 450.00", "特别津贴 (Special Allowance): 100.00", "交通津贴 (Transport Allowance): 300.00", "雇主公积金 (Employer CPF): 180.00" ], "deductions": [ "第一周预支 (First Week Advance): -300.00", "员工贷款 (Employee Loan): -80.00", "CDAC: -1.00", "员工公积金 (Employee CPF): -191.00", "总无薪假 (Total Unpaid Leave): -82.76" ], "additional_info": { "gross_pay": ["2935.40", "4935.40"], "net_pay": ["2363.40", "4213.40"], "cpf_salary": ["2555.40", "4555.40"], "total_cpf": ["371.00", "661.00"], "annual_leave": { "used": "1.00", "balance": "48.00" }, "medical_leave": { "used": "0.00", "balance": "14.00" }, "bank_details": { "bank": "华侨银行 (OCBC Bank)", "account_number": "151179932" } } } ``` Test Keyword Tool: ```bash curl -X POST "http://localhost:8080/api/verify_document_keywords" -F "file=@example.html;type=text/html" -F "analysis_type=legality" -F "search_context=Singapore employment law" ``` reponse: ```json { "analysis_configuration": { "analysis_type": "legality", "search_context": "Singapore employment law" }, "verification_results": [ { "claim": "基本工资 1800.00", "summary": "Claim states a base salary of 1800.00. No evidence to verify.", "status": "Needs Manual Review" }, { "claim": "[ 加班1. 5倍 ] 10. 00小时 x $ 14. 16 = 141. 60", "summary": "Claim states overtime pay at 1.5x rate for 10 hours. The calculation needs verification. No evidence to verify the hourly rate or overtime policy.", "status": "Needs Manual Review" }, { "claim": "[ 加班2. 0倍 ] 12. 00小时 x $ 18. 88 = 226. 56", "summary": "Claim states overtime pay at 2.0x rate for 12 hours. The calculation needs verification. No evidence to verify the hourly rate or overtime policy.", "status": "Needs Manual Review" }, { "claim": "员工公积金 - 191. 00", "summary": "Claim states a deduction of 191.00 for employee housing fund. No evidence to verify the legality or accuracy.", "status": "Needs Manual Review" }, { "claim": "年假 / 已用 / 余额 : 1. 00 / 1. 00 / 48. 00", "summary": "Claim states vacation leave information. No evidence to verify the accuracy or legality of the leave policy.", "status": "Needs Manual Review" } ] } ``` New tool: ```bash curl -X POST "http://localhost:8080/api/analyze_contract" -F "file=@full_pipeline_example.html;type=text/html" ``` ```json { "language": "en", "extracted_data": { "employer": { "text": "ABC PTE \t\t\t有限公司", "summary": "The employer is ABC PTE \t\t\t有限公 司." }, "employee": { "text": "\t\t\t吨啊 Kow", "summary": "The employee's name is \t\t\t吨啊 Kow." }, "pay_period": { "text": "2021\t\t\t 年9月1日 - 2021\t\t\t年9月30日", "summary": "The pay period is from September 1, 2021 to September 30, 2021." }, "salary": { "text": "2000美元", "summary": "The base salary is 2000 USD." }, "bonus": { "text": "2000美元", "summary": "The bonus payment is 2000 USD." } }, "summary_sheet_html": "\n\n\n\n\nPayslip Summary\n\n\n\n\n
\n\n
\n

Employer

\n

The employer is ABC PTE 有限公司.

\n

ABC PTE 有限公司

\n
\n\n
\n

Employee

\n

The employee's name is 吨啊 Kow.

\n

吨啊 Kow

\n
\n\n
\n

Pay Period

\n

The pay period is from September 1, 2021 to September 30, 2021.

\n

2021年9月1日 - 2021年9月30日

\n
\n\n
\n

Salary

\n

The base salary is 2000 USD.

\n

2000美元

\n
\n\n
\n

Bonus

\n

The bonus payment is 2000 USD.

\n

2000美元

\n
\n\n
\n\n\n", "debug_visualization_html": "\n
\n
\n
Highlights Legend: bonus document_meta employee employer pay_period salary
\n
\n
\n
\n Detailed Payment Slip 明细的付款滑名称的雇主 ABC PTE 有限公司 用于的时期:2021年9月1日 - 2021年9月30日 2021年9月4日 名称的员工 吨啊 Kow 模式支付 现金/吉赫克+银行-存款 加班详细信息 Description Amount Description Amount 基础支付 2000美元 “Ovarime”付款游行 2021年9月1日 到 2021年9月30日 瓦洛瓦尔西斯 500美元 OverimeHousWokes 5 运输 300美元 “提取转换加载” 奥维琳支付 8 $72.70 GCC 5 200美元 阿内奖金 2000美元 ossPay A+B) 2500美元 ea = 不是支付(DE 4.26370 雇主 besucton 1,115美元 oe * 高级拉恩啊啊员工中央provident 基金连续性 $949\n
\n
\n
\n \n \n \n
\n
\n \n
\n
\n Entity 1/8 |\n Pos [0-8]\n
\n
\n
\n\n" } ```