Mimino666 / langdetect

Port of Google's language-detection library to Python.
Other
1.71k stars 196 forks source link

[Feature request] Streaming or file object support in python bindings #72

Open za3k opened 4 years ago

za3k commented 4 years ago

The original langdetect in C++ has a very nice "early abort" efficiency optimization. Could "detect" accept some form of lazy-loading (I'd suggest being able to pass a python file object), so it can read only as much of a file as it needs to detect the language the file is in?