stanfordnlp / pdf-struct

Logical structure analysis for visually structured documents
Apache License 2.0
81 stars 11 forks source link

AttributeError: 'TextBox' object has no attribute 'width' #7

Closed nghidinhit closed 10 months ago

nghidinhit commented 10 months ago

I meet this error when using TextContractFeatureExtractor.

cluster_positions([l.width for l in text_lines], 8)[0][::-1], 5) AttributeError: 'TextBox' object has no attribute 'width'

nghidinhit commented 10 months ago

I choose wrong file_type