Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.6 / 3....
  • Linux Kernel 3.0.82 LTS...
  • KDE Software Compilatio...
  • PulseAudio 4.0
  • Wireshark 1.10.0
  • NetworkManager 0.9.8.2
  • LibreOffice 3.6.6 / 4.0...
  • SystemRescueCd 3.7.0
  • Linux Kernel 3.10 RC6
  • Ubuntu Tweak 0.8.5
  • Home > Linux > Programming > Libraries

    DAWG 0.7

    Download button

    No screenshots available
    Downloads: 73  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Mikhail Korobov | More programs
    MIT/X Consortium Lic... / FREE
    September 25th, 2012, 03:58 GMT [view history]
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    DAWG description

    Memory efficient and fast DAWG for Python

    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).

    Installation

    pip install DAWG

    Usage

    There 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

    Requirements:

    · Python

    Limitations:

    · The library is not tested under Windows;
    · IntDAWG is currently a subclass of DAWG and so it doesn't support keys() and items() methods;
    · read() method reads the whole stream (DAWG must be the last or the only item in a stream if it is read with read() method) - pickling doesn't have this limitation;
    · DAWGs loaded with read() and unpickled DAWGs uses 3x-4x memory compared to DAWGs loaded with load() method;
    · iterator versions of methods are not always implemented;
    · there are keys() and items() methods but no values() method.
    · prefixes() method for getting all prefixes of a given work is not implemented yet.

    What's New in This Release: [ read full changelog ]

    · IntCompletionDAWG

      


    TAGS:

    dictionary objects | dawgdic library | Python library | Python | dictionary | objects

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM