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')
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 | RSS feed
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)
Built Distribution
File details
Details for the file addok-trigrams-1.0.0.tar.gz
.
File metadata
- Download URL: addok-trigrams-1.0.0.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bf7f2b054a204d006a57bc7de8849ad8bbb07029f995bceb88f1716aba814bbe |
|
MD5 | 7d954b8645fbf2e9b4edd65247fae913 |
|
BLAKE2b-256 | 84742dedd16c947feb709975e245e43444d49edc792280d6bad89bd1b3cb6489 |
File details
Details for the file addok_trigrams-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: addok_trigrams-1.0.0-py3-none-any.whl
- Upload date:
- Size: 4.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 90edbe9d0509725501d39a79d198d838958ce10cb01fdd1ef96eadec3d774727 |
|
MD5 | 92e6d09182fddbfc083be00c751d6be5 |
|
BLAKE2b-256 | fb94038eadd63b03a3281003e8a0cd2dd797d4eace8c04973185e244560d3a5d |