DAWG

Memory efficient and fast DAWG for Python
Download

DAWG Ranking & Summary

Advertisement

  • Rating:
  • License:
  • MIT/X Consortium Lic...
  • Price:
  • FREE
  • Publisher Name:
  • Mikhail Korobov
  • Publisher web site:
  • http://bitbucket.org/kmike/

DAWG Tags


DAWG Description

DAWG is a Python module based on the dawgdic C++ library that offers a dictionary-like DAWG-based read-only objects for Python (versions 2.x and 3.x).Installationpip install DAWGUsageThere are several DAWG classes in this package:- dawg.DAWG - basic DAWG wrapper; it can store unicode keys and do exact lookups;- dawg.CompletionDAWG - dawg.DAWG subclass that supports key completion and prefix lookups (but requires more memory);- dawg.BytesDAWG - dawg.CompletionDAWG subclass that maps unicode keys to lists of bytes objects.- dawg.RecordDAWG - dawg.BytesDAWG subclass that maps unicode keys to lists of data tuples. All tuples must be of the same format (the data is packed using python struct module).- dawg.IntDAWG - dawg.DAWG subclass that maps unicode keys to integer values.Product's homepage


DAWG Related Software