Giter VIP home page Giter VIP logo

Comments (3)

itkach avatar itkach commented on August 14, 2024

Now, it's quite possible that the dictionary is poorly-formed

it is. Here's the header (retrieved with slob or aard2-web):

         id: 63629b7e9f1940889df4b89c24382f0e
   encoding: utf-8
compression:
 blob count: 58522
  ref count: 223578

compression name is missing

from aard2-android.

nikita-moor avatar nikita-moor commented on August 14, 2024

Hello. It's my dictionary, and it was intentionally stored w/o compression:

import slob
with slob.create(filename, compression="") as slb:
    ...

I think slob library does allow it:

Empty value means bins are not compressed.

from aard2-android.

itkach avatar itkach commented on August 14, 2024

I think slob library does allow it:

Indeed. But Java implementation doesn't support this :)

Using zlib should incur negligible overhead though, even if it doesn't ultimately decrease dictionary size, no reason not to use it. It seems to me that use of TIFF is way more problematic. Dictionary content is typically rendered/viewed with a web browser (desktop or embedded like WebView on Android) and no mainstream browser supports TIFF (other than perhaps Safari?).

from aard2-android.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.