skip to navigation
skip to content

addok-trigrams 1.0.0

Trigram based algorithm for Addok.

# 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')
 
File Type Py Version Uploaded on Size
addok-trigrams-1.0.0.tar.gz (md5) Source 2017-04-20 2KB
addok_trigrams-1.0.0-py3-none-any.whl (md5) Python Wheel 3.6 2017-04-20 4KB