Add requirements.txt
This commit is contained in:
parent
897ea66046
commit
9b8cdf5ad1
@ -45,6 +45,7 @@ _Внимание_! Только Python 2.7, только PostgreSQL, тольк
|
|||||||
|
|
||||||
`python -m pip install https://github.com/Romamo/sphinxapi/zipball/master`
|
`python -m pip install https://github.com/Romamo/sphinxapi/zipball/master`
|
||||||
|
|
||||||
|
|
||||||
### Debian Linux
|
### Debian Linux
|
||||||
1. Установить unrar
|
1. Установить unrar
|
||||||
2. Установить sphinxapi последней версии:
|
2. Установить sphinxapi последней версии:
|
||||||
|
@ -16,7 +16,6 @@ class SphinxSearch:
|
|||||||
|
|
||||||
rating_limit_soft = 0.41
|
rating_limit_soft = 0.41
|
||||||
rating_limit_soft_count = 6
|
rating_limit_soft_count = 6
|
||||||
word_length_soft = 3
|
|
||||||
|
|
||||||
rating_limit_hard = 0.82
|
rating_limit_hard = 0.82
|
||||||
rating_limit_hard_count = 3
|
rating_limit_hard_count = 3
|
||||||
|
@ -90,6 +90,7 @@ class WordEntry:
|
|||||||
if not self.scname:
|
if not self.scname:
|
||||||
self.scname = result[2][1]
|
self.scname = result[2][1]
|
||||||
|
|
||||||
|
# Проверяем, если слово встречается слишком много раз
|
||||||
if len(result) == 5 and result[4][0] > 30000:
|
if len(result) == 5 and result[4][0] > 30000:
|
||||||
self.is_freq_word = True
|
self.is_freq_word = True
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user