diff options
author | cedricbonhomme <devnull@localhost> | 2010-03-06 20:32:14 +0100 |
---|---|---|
committer | cedricbonhomme <devnull@localhost> | 2010-03-06 20:32:14 +0100 |
commit | 559b9179905f83fdb1fcf4e8d8423c26db6dfde3 (patch) | |
tree | 157d598a0e75dcea0fe0e4f42c9449db34332c6c /utils.py | |
parent | Improvement of display of description of article. Now articles are search by ... (diff) | |
download | newspipe-559b9179905f83fdb1fcf4e8d8423c26db6dfde3.tar.gz newspipe-559b9179905f83fdb1fcf4e8d8423c26db6dfde3.tar.bz2 newspipe-559b9179905f83fdb1fcf4e8d8423c26db6dfde3.zip |
Added a link to the page of the GPL v3 license.
Diffstat (limited to 'utils.py')
-rw-r--r-- | utils.py | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -27,6 +27,7 @@ def detect_language(text): Detect the language of a text. English, French or other (not detected). """ + text = text.strip() try: text_stream = streams.Stream(StringIO(text)) lang = langdet.LanguageDetector.detect(text_stream) |