Tags: nomadcube/python-ngram
Tags
Version 3.3.0
NEW FEATURES
* Correct support for remaining set methods:
`pop`, `clear`, `union`, `intersection`, `difference`, `symmetric_difference`
* Can provide alternate `items` to the `copy` method
IMPROVEMENTS
* Update license from LGPL to LGPL version 3
* Revised readme to work with GitHub, PyPI and generated docs.
* Tox to run all doctests, pass under 2.7 and 3.2
BUG FIXES
* Fix unused threshold param in `searchitem` method
* Fix intersection_update to accept multiple other iterables
Version 3.2.0 NEW FEATURES * "csvjoin" script performs SQL-like join between CSV tables based on string similarity. * NGram instances can now be pickled/unpickled (added __reduce__) * Add searchitem method to search by item (search method takes a string) * Add find and finditem methods to return 1 result instead of a list. BREAKING CHANGES * iconv parameter is now the "key" parameter, convention of sorted() builtin. * qconv parameter no longer exists: use searchitem method to query by item OTHER IMPROVEMENTS * Converted Mercurial repo to Git * Corrected indentation from 3 to 4 spaces * Added tox to run tests on Python 2.7 and 3.2
Version 3.1.0 NEW FEATURES * Python 3 support via 2to3 * Sphinx documentation generation * Tutorial documentation BREAKING CHANGES * str_item and str_query params are now iconv and qconv BUG FIXES * Integer division bug (e.g. arises when warp is 2 not 2.0) MINOR CHANGES * Setuptools replaced by Distribute (for Python 3) * Docstrings now reStructuredText for Sphinx
Version 3.0.0 This was a major refactoring without back-compatibility. NEW FEATURES * Accepts any hashable item - no longer limited to strings. * Re-written as subclass of set, gaining all set operations. * Docstrings added. Using Epydoc API doc generator. IMPROVEMENTS * Eliminated innermost level of dictionaries, reducing memory usage. * Revised to use Python 2.6 idioms. Losing Python 2.2 compatibility. * Renamed things to follow PEP 8 * Refactored the NGram class (new method decomposition)