Skip to main content

Gismo logo

A Generic Information Search... With a Mind of its Own!

Pypi badge Build badge Documentation badge codecov License: MIT

GISMO is a NLP tool to rank and organize a corpus of documents according to a query.

Gismo stands for Generic Information Search... with a Mind of its Own.

Features

Gismo combines three main ideas:

  • TF-IDTF: a symmetric version of the TF-IDF embedding.
  • DIteration: a fast, push-based, variant of the PageRank algorithm.
  • Fuzzy dendrogram: a variant of the Louvain clustering algorithm.

Quickstart

Install gismo:

$ pip install gismo

Use gismo in a Python project:

>>> from gismo.common import toy_source_dict
>>> from gismo import Corpus, Embedding, CountVectorizer, Gismo
>>> corpus = Corpus(toy_source_dict, to_text=lambda x: x['content'])
>>> embedding = Embedding(vectorizer=CountVectorizer(dtype=float))
>>> embedding.fit_transform(corpus)
>>> gismo = Gismo(corpus, embedding)
>>> gismo.rank("Mogwaï")
>>> gismo.get_features_by_rank()
['mogwaï', 'gizmo', 'chinese', 'in', 'demon', 'folklore', 'is']

To get the hang of a typical Gismo workflow, you can check the Toy Example notebook. For more advanced uses, look at the other tutorials or directly the reference section.

Credits

Thomas Bonald, Anne Bouillard, Marc-Olivier Buob, Dohy Hong for their helpful contribution.

This package was created with Cookiecutter and the francois-durand/package_helper project template.

Coverage

codecov

Metadata

Release files for gismo 0.5.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gismo 0.5.4
File Size Uploaded
gismo-0.5.4.tar.gz 78.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for gismo 0.5.4
File Interpreter ABI Platform
gismo-0.5.4-py3-none-any.whl Python 3 none any Details

Total release size: 160.8 kB

Release files / gismo-0.5.4.tar.gz

Download URL gismo-0.5.4.tar.gz
Size 78.1 kB
Tags Source
SHA-256 checksum
How to use checksums
fa518882e181557bef377ba89cf4b4aec831b7ca597a70ed2842cea465822b42
BLAKE2b-256 checksum
How to use checksums
d54c92b97ef230626470be2abb0de977b6c6a5373fae8a22d57400c3f9f2b929
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.6.11

Release files / gismo-0.5.4-py3-none-any.whl

Download URL gismo-0.5.4-py3-none-any.whl
Size 82.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
585beba57a1e21484d448ec1b6b2d173aea732dd918a7d95b63e1ef6428bca89
BLAKE2b-256 checksum
How to use checksums
d7247b9ec1fe615fa42d12b9fcae860579a2d9076c637d99349db7507683de80
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.6.11

Release history Release notifications | RSS feed

This release

0.5.4 This release

2 release files

0.5.3

2 release files

0.5.2

2 release files

0.5.1

2 release files

0.5.0

2 release files

0.4.3

2 release files

0.4.2

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.5

2 release files

0.2.4

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page