Skip to main content

Trigram based algorithm for Addok.

Project description

# Addok-trigrams

Alternative indexation pattern for Addok, based on trigrams.


# Installation

# No pypi release yet.
pip install git+https://github.com/addok/addok-trigrams


# Configuration

In your local configuration file:

- remove `extend_results_reducing_tokens` from RESULTS_COLLECTORS_PYPATHS:

from addok.config.default import RESULTS_COLLECTORS_PYPATHS
RESULTS_COLLECTORS_PYPATHS.remove('addok.helpers.collectors.extend_results_reducing_tokens')

- add new RESULTS_COLLECTORS_PYPATHS:

RESULTS_COLLECTORS_PYPATHS += [
'addok_trigrams.extend_results_removing_numbers',
'addok_trigrams.extend_results_removing_one_whole_word',
'addok_trigrams.extend_results_removing_successive_trigrams',
]

- add `trigramize` to PROCESSORS_PYPATHS:

PROCESSORS_PYPATHS += [
'addok_trigrams.trigramize',
]

- remove pairs and autocomplete indexers from `INDEXERS_PYPATHS`:

from addok.config.default import INDEXERS_PYPATHS
INDEXERS_PYPATHS.remove('addok.pairs.PairsIndexer')
INDEXERS_PYPATHS.remove('addok.autocomplete.EdgeNgramIndexer')

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

addok-trigrams-1.0.0.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

addok_trigrams-1.0.0-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file addok-trigrams-1.0.0.tar.gz.

File metadata

File hashes

Hashes for addok-trigrams-1.0.0.tar.gz
Algorithm Hash digest
SHA256 bf7f2b054a204d006a57bc7de8849ad8bbb07029f995bceb88f1716aba814bbe
MD5 7d954b8645fbf2e9b4edd65247fae913
BLAKE2b-256 84742dedd16c947feb709975e245e43444d49edc792280d6bad89bd1b3cb6489

See more details on using hashes here.

File details

Details for the file addok_trigrams-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for addok_trigrams-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 90edbe9d0509725501d39a79d198d838958ce10cb01fdd1ef96eadec3d774727
MD5 92e6d09182fddbfc083be00c751d6be5
BLAKE2b-256 fb94038eadd63b03a3281003e8a0cd2dd797d4eace8c04973185e244560d3a5d

See more details on using hashes here.

Supported by

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