| 
									
										
										
										
											2023-08-24 17:46:19 -07:00
										 |  |  | # Custom Layout Sorting
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-10-16 16:05:55 -07:00
										 |  |  | This directory contains examples of how element sorting works. | 
					
						
							| 
									
										
										
										
											2023-08-24 17:46:19 -07:00
										 |  |  | 
 | 
					
						
							|  |  |  | ## Running the example
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | ### Running script(.py)
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | ``` | 
					
						
							| 
									
										
										
										
											2023-10-16 16:05:55 -07:00
										 |  |  | export PYTHONPATH=.:$PYTHONPATH && python examples/custom-layout-order/evaluate_natural_reading_order.py <file_path> <strategy> | 
					
						
							| 
									
										
										
										
											2023-08-24 17:46:19 -07:00
										 |  |  | ``` | 
					
						
							|  |  |  | Here, the file should be under the project root directory. For example, | 
					
						
							|  |  |  | ``` | 
					
						
							| 
									
										
										
										
											2023-10-16 16:05:55 -07:00
										 |  |  | export PYTHONPATH=.:$PYTHONPATH && python examples/custom-layout-order/evaluate_natural_reading_order.py example-docs/multi-column-2p.pdf fast | 
					
						
							| 
									
										
										
										
											2023-08-24 17:46:19 -07:00
										 |  |  | ``` | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | ### Running jupyter notebook
 | 
					
						
							| 
									
										
										
										
											2023-09-03 13:19:40 -07:00
										 |  |  | The Google Colab version of the notebook can be found here: https://colab.research.google.com/drive/1HgBvHNPnY-dXO043DftvvMeynlLPgQ_p |