Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions polyglot/detect/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@


from icu import Locale
import pycld2 as cld2
import cld2

logger = logging.getLogger(__name__)

Expand Down Expand Up @@ -86,7 +86,7 @@ def detect(self, text):
if not reliable:
self.reliable = False
reliable, index, top_3_choices = cld2.detect(t, bestEffort=True)

if not self.quiet:
if not reliable:
raise UnknownLanguage("Try passing a longer snippet of text")
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
wheel>=0.23.0
PyICU>=1.8
pycld2>=0.3
six>=1.7.3
futures>=2.1.6
morfessor>=2.0.2a1
numpy>=1.6.1
cld2-cffi>=0.1.4
2 changes: 1 addition & 1 deletion rtd_requirements.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
wheel>=0.23.0
pycld2>=0.20
six>=1.7.3
futures>=2.1.6
sphinxcontrib-napoleon>=0.2.8
mock>=1.0.1
sphinx-bootstrap-theme>=0.4.5
alabaster>=0.7.1
cld2-cffi>=0.1.4