News for hackers. Stuff that matters.
Re:Amazon Textract – Extract text and data from virtually an... by philsnow on Wednesday November 28, 2018 @02:32PM (#18554836)
If you're running tesseract locally (i.e. not paying per invocation), run it once with EN and count occurrences of the/this/a/any etc, run it again with DE and count occurrences of der/die/das/um/ab/wie, and go from there?

Edit: Hell, even average word length is probably going to be a good indicator since German is so agglutinative. Collect some factors like this and I think you'll be able to build a pretty good classifier.

Re:Amazon Textract – Extract text and data from virtually an... by rpedela on Wednesday November 28, 2018 @03:34PM (#18555378)
Good idea. I would take it one step further. I would use a ML-based language detection tool which should return a list of languages and a confidence score. Whichever language has the highest confidence score wins. The FastText project has a good pre-trained model available.