Skip to content

Commit

Permalink
docs: prepare new version
Browse files Browse the repository at this point in the history
  • Loading branch information
adbar committed Nov 29, 2021
1 parent 8b8e329 commit 9c27a6b
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
7 changes: 7 additions & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@ History
=======


0.2.0
-----

* Change Numpy data type for features (``uint32`` → ``uint16``)
* Code cleaning


0.1.2
-----

Expand Down
10 changes: 8 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Changes in this fork
Execution speed has been improved and the code base has been optimized for Python 3.6+:

- Loading the module with ``import`` is now about 10x faster
- Language detection with ``langid.classify`` is now about 2.5x faster
- Language detection with ``langid.classify`` is now about 5x faster


Usage
Expand Down Expand Up @@ -73,6 +73,13 @@ More options:
('en', 1.0)
Note: the Numpy data type for the feature vector has been changed to optimize for speed. If results are inconsistent, try restoring the original setting:

.. code-block:: python
>>> langid.classify(text, datatype='uint32')
On the command-line
~~~~~~~~~~~~~~~~~~~

Expand All @@ -86,7 +93,6 @@ On the command-line
$ echo "This won't be recognized properly." | langid -n -l fr,it,tr
('it', 0.9703832808613264)
(This might not work on Windows systems.)
Legacy documentation
Expand Down

0 comments on commit 9c27a6b

Please sign in to comment.