Thesaurus Visualization
Current supported languages are:
- English
eng - Russian
rus
How to run
Minimalistic way
Install the library:
pip install thesaurus-lib
Create an object and specify the language:
obj = Thesaurus(lang='eng')
Show output:
obj.show_map()
Run with your own foregrounds:
After you install the library and create the object do the following
- pass them to the library:
text1 = obj.read_pickle('2017')
text2 = obj.read_txt('shakespeare.txt')
text3 = obj.read_text('My foreground in string format')
- Preprocess your foreground:
texts = dict()
foreground_name = 'Physics articles 2017'
texts[foreground_name] = obj.custom_preprocessing_of_data(text1)
- Process foregrounds:
processed_foregrounds = obj.process_foreground(foreground_names, texts)
- Show output:
obj.show_map()
Use your own configurations
After installing the library create a file called 'config.cfg' in your working directory and fill the value with your own files:
[paths]
som_path =
index_path =
back_tokens_path =
back_embeds_path =
stopwords_path =
foregrounds_path =
[lang]
som_url =
embeds_url =
som_file =
index_file =
back_tokens =
back_embeds =
embeddings_file =
STOPWORDS_FILE =
model =
Note: Don't leave any empty field in config.cfg. For example if you aren't providing a som_file then delete it in your config.cfg and don't keep it in this way:
# fill it or delete it
som_file =
Metadata
Release files for thesaurus-lib 0.1.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| thesaurus_lib-0.1.9.tar.gz | 2.0 MB | Without provenance | Details for thesaurus_lib-0.1.9.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| thesaurus_lib-0.1.9-py3-none-any.whl | Python 3 | none | any | Details for thesaurus_lib-0.1.9-py3-none-any.whl |
Total release size: 4.0 MB
Release files / thesaurus_lib-0.1.9.tar.gz
| Download URL | thesaurus_lib-0.1.9.tar.gz |
|---|---|
| Size | 2.0 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
deb3ac65200a29f8e582f6914010420c82baf314493ca6e2c2e3e8636923e0df
|
|
BLAKE2b-256 checksum How to use checksums |
0d90a3d07fbacc98f50a10623f37f31d756d9059a3e4501e53ca224c667145e3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.14
|
Release files / thesaurus_lib-0.1.9-py3-none-any.whl
| Download URL | thesaurus_lib-0.1.9-py3-none-any.whl |
|---|---|
| Size | 2.0 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
064f9ae3e9042ba0b211850821ab21fcfdb8c863a8b35b0fd41df5dd91486d67
|
|
BLAKE2b-256 checksum How to use checksums |
c87b92f58664517f82406992e2ff13dfa956a026831b5dc172de1d7fa8158555
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.14
|
Security for thesaurus-lib 0.1.9
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.