jlsutherland / doc2text

Detect text blocks and OCR poorly scanned PDFs in bulk. Python module available via pip.
MIT License
1.27k stars 97 forks source link

Error passing the lang to the class #19

Closed crgimenes closed 8 years ago

crgimenes commented 8 years ago

When I try to pass the language as in the example:

doc = doc2text.Document(lang="por")

I received the following error message:

    doc = doc2text.Document(lang="por")
TypeError: __init__() got an unexpected keyword argument 'lang'
jlsutherland commented 8 years ago

@crgimenes this should be fixed now. Thank you for flagging. We needed to push the update to PyPi. Please update your doc2text dist via pip.