Skip to main content

nltk.util.Index in a standalone package.

Project description

# pip install justindex
# >>> from justindex import index

>>> index((len(s), s) for s in 'a b'.split())
defaultdict(<class 'list'>, {1: ['a', 'b']})
>>> index((len(s), s) for s in ''.split())
defaultdict(<class 'list'>, {})
>>> sorted(index((len(s), s) for s in 'a b cc'.split()).items())
[(1, ['a', 'b']), (2, ['cc'])]

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

justindex-0.1.0.tar.gz (903 Bytes view details)

Uploaded Source

File details

Details for the file justindex-0.1.0.tar.gz.

File metadata

  • Download URL: justindex-0.1.0.tar.gz
  • Upload date:
  • Size: 903 Bytes
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for justindex-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b98ab83a2ca9f2d545e4ba711099a076ff0385de9ccfcdad93a4731a5bbdbffa
MD5 92b46c2f6e76f43a3d5948ff037cbeca
BLAKE2b-256 8dbbc95ce49f269972d07a55eb2e2f19c78eee285f75828e2a5210296847bb24

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page