Skip to main content
# text-indexer

[![Build Status](https://travis-ci.org/Yoctol/text-indexer.svg?branch=master)](https://travis-ci.org/Yoctol/text-indexer)
[![PyPI version](https://badge.fury.io/py/text-indexer.svg)](https://badge.fury.io/py/text-indexer)

Indexer transforms list of strings to list of integers according to the string2int mapping function(e.q. a look-up table).

## Getting Started

### Prerequisites

1. Please create a virtual environment with python 3.6
2. Type the following command in terminal:
```
make install
```

### Running the tests

```
make test
```

## How to completely save and load indexer?

### 1. Save
```python
from text_indexer.io import save_indexer
custom_indexer_instance = XXIndexer()
save_indexer(indexer=custom_indexer_instance, output_dir='directory-to-export-indexer')
```
If output_dir is `/home/user/example/`, you will get a tar file `/home/user/example-all.tar.gz` after calling
`save_indexer`.

### 2. Load
```python
from text_indexer.io import load_indexer
your_indexer = load_indexer(path='indexer-tar-filepath')
```


Metadata

Release files for text-indexer 1.1.1

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

Source distribution (sdist)

Source distribution for text-indexer 1.1.1
File Size Uploaded Provenance Actions
text-indexer-1.1.1.tar.gz 29.2 kB Without provenance Details for text-indexer-1.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for text-indexer 1.1.1
File Interpreter ABI Platform Actions
text_indexer-1.1.1-py3-none-any.whl Python 3 none any Details for text_indexer-1.1.1-py3-none-any.whl

Total release size: 54.4 kB

Release files / text-indexer-1.1.1.tar.gz

Download URL text-indexer-1.1.1.tar.gz
Size 29.2 kB
Tags Source
SHA-256 checksum
How to use checksums
ed8fddf1d45d7098ee9d38634395cb4967cdbd878ee693b6976897f91f16eae3
BLAKE2b-256 checksum
How to use checksums
a629140eeb325ba32d13bd1b09055610771aaac6819555606625274f6d3ae44f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.3

Release files / text_indexer-1.1.1-py3-none-any.whl

Download URL text_indexer-1.1.1-py3-none-any.whl
Size 25.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
dece711b7c9c14bb5885596636ac0e05950ca9a51e794d6da517718f11982f51
BLAKE2b-256 checksum
How to use checksums
7b23a24d1b584ad1a8c75352e9dec332f70c347ca1a872788941d8397caf01cc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.3

Security for text-indexer 1.1.1

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.

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