Souvik3333 commited on
Commit
c3886ff
·
verified ·
1 Parent(s): 3fa5b34

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +3 -1
README.md CHANGED
@@ -25,6 +25,7 @@ Nanonets-OCR2: A model for transforming documents into structured markdown with
25
  <a href="https://docstrange.nanonets.com/" target="_blank"><strong>🖥️ Live Demo</strong></a> |
26
  <a href="https://nanonets.com/research/nanonets-ocr-2/" target="_blank"><strong>📢 Blog</strong></a> |
27
  <a href="https://github.com/NanoNets/docstrange" target="_blank"><strong>⌨️ GitHub</strong></a>
 
28
  </div>
29
 
30
  </div>
@@ -281,7 +282,7 @@ Check out [Docstrange](https://docstrange.nanonets.com/) for more details.
281
  1. Increasing the image resolution will improve model's performance.
282
  2. For complex tables (eg. Financial documents) using `repetition_penalty=1` gives better results. You can try this prompt also, which generally works better for finantial documents.
283
  ```python
284
- user_prompt = """Extract the text from the above document as if you were reading it naturally. Return the tables in html format. Return the equations in LaTeX representation. If there is an image in the document and image caption is not present, add a small description of the image inside the <img></img> tag; otherwise, add the image caption inside <img></img>. Watermarks should be wrapped in brackets. Ex: <watermark>OFFICIAL COPY</watermark>. Page numbers should be wrapped in brackets. Ex: <page_number>14</page_number> or <page_number>9/22</page_number>. Prefer using ☐ and ☑ for check boxes."""
285
  ```
286
  3. This is already implemented in [Docstrange](https://docstrange.nanonets.com/?output_type=markdown-financial-docs), please use the `Markdown (Financial Docs)` option for processing table heavy financial documents.
287
  ```python
@@ -296,6 +297,7 @@ data = {"output_type": "markdown-financial-docs"}
296
  response = requests.post(url, headers=headers, files=files, data=data)
297
  print(response.json())
298
  ```
 
299
 
300
 
301
  ## BibTex
 
25
  <a href="https://docstrange.nanonets.com/" target="_blank"><strong>🖥️ Live Demo</strong></a> |
26
  <a href="https://nanonets.com/research/nanonets-ocr-2/" target="_blank"><strong>📢 Blog</strong></a> |
27
  <a href="https://github.com/NanoNets/docstrange" target="_blank"><strong>⌨️ GitHub</strong></a>
28
+ <a href="https://github.com/NanoNets/Nanonets-OCR2" target="_blank"><strong>📖 Cookbooks</strong></a>
29
  </div>
30
 
31
  </div>
 
282
  1. Increasing the image resolution will improve model's performance.
283
  2. For complex tables (eg. Financial documents) using `repetition_penalty=1` gives better results. You can try this prompt also, which generally works better for finantial documents.
284
  ```python
285
+ user_prompt = """Extract the text from the above document as if you were reading it naturally. Return the tables in HTML format. Return the equations in LaTeX representation. If there is an image in the document and image caption is not present, add a small description of the image inside the <img></img> tag; otherwise, add the image caption inside <img></img>. Watermarks should be wrapped in brackets. Ex: <watermark>OFFICIAL COPY</watermark>. Page numbers should be wrapped in brackets. Ex: <page_number>14</page_number> or <page_number>9/22</page_number>. Prefer using ☐ and ☑ for check boxes. Only return HTML table within <table></table>."""
286
  ```
287
  3. This is already implemented in [Docstrange](https://docstrange.nanonets.com/?output_type=markdown-financial-docs), please use the `Markdown (Financial Docs)` option for processing table heavy financial documents.
288
  ```python
 
297
  response = requests.post(url, headers=headers, files=files, data=data)
298
  print(response.json())
299
  ```
300
+ 4. Model might work best on certain resolution for specific document types. Please check the [cookbooks](https://github.com/NanoNets/Nanonets-OCR2/blob/main/Nanonets-OCR2-Cookbook/image2md.ipynb) for details.
301
 
302
 
303
  ## BibTex