A Generic Information Search... With a Mind of its Own!
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.
- Free software: MIT License
- Github: https://github.com/balouf/gismo/
- Documentation: https://balouf.github.io/gismo/
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
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)
| File | Size | Uploaded | |
|---|---|---|---|
| gismo-0.5.4.tar.gz | 78.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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
|