Spaces:
Running
Running
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<meta name="viewport" content="width=device-width" /> | |
<title>My static Space</title> | |
<link rel="stylesheet" href="style.css" /> | |
</head> | |
<body> | |
<div class="card"> | |
<h2 id="-azure-document-intelligence-coding-challenge-"><strong>Coding Challenge</strong></h2> | |
<h3 id="-available-json-files-"><strong>Available JSON Files</strong></h3> | |
<p>The following JSON files are the output of <strong>Azure Document Intelligence</strong>:</p> | |
<ul> | |
<li><a target="_blank" rel="noopener noreferrer" href="https://huggingface.co/spaces/compustar/coding-challenge/resolve/main/Scope-of-Funding-Summary-CN.pdf.json?download=true"><strong>Scope of Funding Summary (CN) - JSON</strong></a> (141KB)</li> | |
<li><a target="_blank" rel="noopener noreferrer" href="https://huggingface.co/spaces/compustar/coding-challenge/resolve/main/IMF%20World%20Economic%20Outlook%202024%20October.pdf.json?download=true"><strong>IMF World Economic Outlook 2024 (October) - JSON</strong></a> (29.1MB)</li> | |
</ul> | |
<p>The JSON structure follows the specifications outlined in the <strong>Azure AI Services REST API</strong>:<br>π <a target="_blank" rel="noopener noreferrer" href="https://learn.microsoft.com/en-us/rest/api/aiservices/document-models/get-analyze-result?view=rest-aiservices-v4.0%20(2024-11-30)&tabs=HTTP#analyzeresult">Document Models - Get Analyze Result</a></p> | |
<hr> | |
<h2 id="-challenges-"><strong>Challenges</strong></h2> | |
<h3 id="-challenge-1-convert-json-to-markdown-">πΉ <strong>Challenge 1: Convert JSON to Markdown</strong></h3> | |
<p>Write a program in any language (using LLMs or AI-powered IDEs if desired) to convert the JSON files into <strong>Markdown</strong> format. The output should match the structure of these example files:</p> | |
<ul> | |
<li><a target="_blank" rel="noopener noreferrer" href="https://huggingface.co/spaces/compustar/coding-challenge/resolve/main/Scope-of-Funding-Summary-CN.pdf.md?download=true"><strong>Scope of Funding Summary (CN) - Markdown</strong></a></li> | |
<li><a target="_blank" rel="noopener noreferrer" href="https://huggingface.co/spaces/compustar/coding-challenge/resolve/main/IMF%20World%20Economic%20Outlook%202024%20October.pdf.md?download=true"><strong>IMF World Economic Outlook 2024 (October) - Markdown</strong></a></li> | |
</ul> | |
<p>π‘ <strong>Hint:</strong> Start with the <strong>smaller file</strong> (141KB) before working with the larger one (29.1MB). This will help you debug and refine your approach efficiently.</p> | |
<hr> | |
<h3 id="-challenge-2-convert-json-to-html-">πΉ <strong>Challenge 2: Convert JSON to HTML</strong></h3> | |
<p>Develop a program to transform the JSON files into <strong>HTML</strong>, ensuring that the output matches the format produced by:</p> | |
<p>π <a target="_blank" rel="noopener noreferrer" href="https://markdowntohtml.com/"><strong>Free Markdown to HTML Converter</strong></a></p> | |
<p>π‘ <strong>Hint:</strong> Once again, process the <strong>smaller JSON file first</strong> to verify your approach before handling the larger dataset.</p> | |
<hr> | |
<h3 id="-challenge-3-convert-json-to-word-document-">πΉ <strong>Challenge 3: Convert JSON to Word Document</strong></h3> | |
<p>Write a program to convert the JSON files into <strong>Word (.docx) files</strong>, ensuring that they visually match the <strong>HTML output</strong> from Challenge 2.</p> | |
<p>π‘ <strong>Hint:</strong> If your markdown-to-HTML pipeline is working correctly, you can use <strong>Markdown-to-Word conversion tools</strong> (such as Pandoc) or a direct <strong>HTML-to-Word approach</strong> to generate consistent results.</p> | |
<hr> | |
<p>π‘ <strong>You can use any programming language, framework, or AI-powered development tool to complete these challenges.</strong> Happy coding! π</p> | |
</div> | |
</body> | |
</html> | |