Skip to content

Commit

Permalink
made langid.py cross-compatible with Python2 and Python3
Browse files Browse the repository at this point in the history
  • Loading branch information
saffsd committed Mar 5, 2015
1 parent ab36af7 commit 600f530
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 35 deletions.
5 changes: 4 additions & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@ The design principles are as follows:
4. Single .py file with minimal dependencies
5. Deployable as a web service

All that is required to run ``langid.py`` is >= Python 2.5 and numpy.
All that is required to run ``langid.py`` is >= Python 2.7 and numpy.
The main script ``langid/langid.py`` is cross-compatible with both Python2 and
Python3, but the accompanying training tools are still Python2-only.

``langid.py`` is WSGI-compliant. ``langid.py`` will use ``fapws3`` as a web server if
available, and default to ``wsgiref.simple_server`` otherwise.

Expand Down
91 changes: 57 additions & 34 deletions langid/langid.py

Large diffs are not rendered by default.

0 comments on commit 600f530

Please sign in to comment.