Skip to main content
Help us improve PyPI by participating in user testing. All experience levels needed!

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


Release history Release notifications

This version
History Node

1.0.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
addok_trigrams-1.0.0-py3-none-any.whl (4.4 kB) Copy SHA256 hash SHA256 Wheel 3.6 Apr 20, 2017
addok-trigrams-1.0.0.tar.gz (3.0 kB) Copy SHA256 hash SHA256 Source None Apr 20, 2017

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page