• Извлечение информации из большого количества документов. Чем?

    Alf162
    @Alf162
    Стоит посмотреть в сторону алгоритмов вроде word2vec (doc2vec, lda2vec и т.п.) Если нужно попроще, то подойдет что-то типа tf-idf. Все это реализовано на питоне, slkearn, gensim
    Ответ написан
    Комментировать
  • Как запустить нечеткий поиск в rt index sphinx?

    Alf162
    @Alf162 Автор вопроса
    [Mon Dec  7 13:20:30.171 2015] [ 4564] listening on all interfaces, port=5435
    [Mon Dec  7 13:20:30.177 2015] [ 4564] listening on 127.0.0.1:9306
    [Mon Dec  7 13:20:30.180 2015] [ 4564] binlog: replaying log ./binlog.001
    [Mon Dec  7 13:20:30.181 2015] [ 4564] binlog: replay stats: 0 rows in 0 commits; 0 updates, 0 reconfigure; 0 indexes
    [Mon Dec  7 13:20:30.181 2015] [ 4564] binlog: finished replaying ./binlog.001; 0.0 MB in 0.000 sec
    [Mon Dec  7 13:20:30.181 2015] [ 4564] binlog: finished replaying total 1 in 0.000 sec
    [Mon Dec  7 13:20:30.182 2015] [ 4564] accepting connections
    [Mon Dec  7 13:26:08.813 2015] [ 4564] caught SIGTERM, shutting down
    [Mon Dec  7 13:26:08.883 2015] [ 4564] rt: index indexer_rt: ramchunk saved in 0.007 sec
    [Mon Dec  7 13:26:08.986 2015] [ 4564] shutdown complete
    [Mon Dec  7 13:27:12.697 2015] [ 3384] listening on all interfaces, port=5435
    [Mon Dec  7 13:27:12.700 2015] [ 3384] listening on 127.0.0.1:9306
    [Mon Dec  7 13:27:12.703 2015] [ 3384] accepting connections
    [Mon Dec  7 13:46:12.484 2015] [ 3384] caught SIGTERM, shutting down
    [Mon Dec  7 13:46:12.602 2015] [ 3384] rt: index indexer_rt: ramchunk saved in 0.008 sec
    [Mon Dec  7 13:46:12.657 2015] [ 3384] shutdown complete
    [Mon Dec  7 13:46:14.045 2015] [  876] listening on all interfaces, port=5435
    [Mon Dec  7 13:46:14.048 2015] [  876] listening on 127.0.0.1:9306
    [Mon Dec  7 13:46:14.051 2015] [  876] accepting connections
    [Mon Dec  7 13:52:07.523 2015] [  876] caught SIGTERM, shutting down
    [Mon Dec  7 13:52:07.654 2015] [  876] rt: index indexer_rt: ramchunk saved in 0.006 sec
    [Mon Dec  7 13:52:07.665 2015] [  876] shutdown complete
    [Mon Dec  7 13:52:09.068 2015] [ 4296] listening on all interfaces, port=5435
    [Mon Dec  7 13:52:09.071 2015] [ 4296] listening on 127.0.0.1:9306
    [Mon Dec  7 13:52:09.072 2015] [ 4296] WARNING: ERROR: index 'indexer_rt': prefixes and infixes can not both be enabled on all fields - NOT SERVING
    [Mon Dec  7 13:52:09.072 2015] [ 4296] FATAL: no valid indexes to serve
    [Mon Dec  7 13:53:44.748 2015] [ 3108] listening on all interfaces, port=5435
    [Mon Dec  7 13:53:44.751 2015] [ 3108] listening on 127.0.0.1:9306
    [Mon Dec  7 13:53:44.754 2015] [ 3108] accepting connections
    [Mon Dec  7 13:55:10.782 2015] [ 3108] caught SIGTERM, shutting down
    [Mon Dec  7 13:55:10.819 2015] [ 3108] rt: index indexer_rt: ramchunk saved in 0.005 sec
    [Mon Dec  7 13:55:10.861 2015] [ 3108] shutdown complete
    [Mon Dec  7 13:55:11.740 2015] [ 2236] listening on all interfaces, port=5435
    [Mon Dec  7 13:55:11.743 2015] [ 2236] listening on 127.0.0.1:9306
    [Mon Dec  7 13:55:11.745 2015] [ 2236] accepting connections
    [Mon Dec  7 13:57:21.378 2015] [ 2236] caught SIGTERM, shutting down
    [Mon Dec  7 13:57:21.384 2015] [ 2236] rt: index indexer_rt: ramchunk saved in 0.005 sec
    [Mon Dec  7 13:57:21.395 2015] [ 2236] shutdown complete
    [Mon Dec  7 13:57:21.844 2015] [ 4520] listening on all interfaces, port=5435
    [Mon Dec  7 13:57:21.847 2015] [ 4520] listening on 127.0.0.1:9306
    [Mon Dec  7 13:57:21.848 2015] [ 4520] WARNING: ERROR: index 'indexer_rt': prefixes and infixes can not both be enabled on all fields - NOT SERVING
    [Mon Dec  7 13:57:21.848 2015] [ 4520] FATAL: no valid indexes to serve
    [Mon Dec  7 13:57:27.689 2015] [ 3908] listening on all interfaces, port=5435
    [Mon Dec  7 13:57:27.692 2015] [ 3908] listening on 127.0.0.1:9306
    [Mon Dec  7 13:57:27.694 2015] [ 3908] accepting connections
    [Mon Dec  7 13:59:25.487 2015] [ 3908] caught SIGTERM, shutting down
    [Mon Dec  7 13:59:25.586 2015] [ 3908] rt: index indexer_rt: ramchunk saved in 0.005 sec
    [Mon Dec  7 13:59:25.629 2015] [ 3908] shutdown complete
    [Mon Dec  7 13:59:35.324 2015] [ 2324] listening on all interfaces, port=5435
    [Mon Dec  7 13:59:35.327 2015] [ 2324] listening on 127.0.0.1:9306
    [Mon Dec  7 13:59:35.329 2015] [ 2324] accepting connections
    [Mon Dec  7 14:09:58.493 2015] [ 2324] caught SIGTERM, shutting down
    [Mon Dec  7 14:09:58.561 2015] [ 2324] rt: index indexer_rt: ramchunk saved in 0.005 sec
    [Mon Dec  7 14:09:58.619 2015] [ 2324] shutdown complete
    [Mon Dec  7 14:09:59.517 2015] [ 3964] listening on all interfaces, port=5435
    [Mon Dec  7 14:09:59.520 2015] [ 3964] listening on 127.0.0.1:9306
    [Mon Dec  7 14:09:59.522 2015] [ 3964] accepting connections
    [Mon Dec  7 14:42:03.035 2015] [ 3964] caught SIGTERM, shutting down
    [Mon Dec  7 14:42:03.053 2015] [ 3964] rt: index indexer_rt: ramchunk saved in 0.002 sec
    [Mon Dec  7 14:42:03.097 2015] [ 3964] shutdown complete
    [Mon Dec  7 14:42:04.362 2015] [ 2244] listening on all interfaces, port=5435
    [Mon Dec  7 14:42:04.365 2015] [ 2244] listening on 127.0.0.1:9306
    [Mon Dec  7 14:42:04.368 2015] [ 2244] accepting connections
    [Mon Dec  7 15:46:04.611 2015] [ 2244] caught SIGTERM, shutting down
    [Mon Dec  7 15:46:04.682 2015] [ 2244] rt: index indexer_rt: ramchunk saved in 0.007 sec
    [Mon Dec  7 15:46:04.706 2015] [ 2244] shutdown complete
    [Mon Dec  7 15:46:05.346 2015] [ 2736] listening on all interfaces, port=5435
    [Mon Dec  7 15:46:05.349 2015] [ 2736] listening on 127.0.0.1:9306
    [Mon Dec  7 15:46:05.352 2015] [ 2736] accepting connections
    [Mon Dec  7 15:53:58.432 2015] [ 2736] caught SIGTERM, shutting down
    [Mon Dec  7 15:53:58.512 2015] [ 2736] rt: index indexer_rt: ramchunk saved in 0.001 sec
    [Mon Dec  7 15:53:58.605 2015] [ 2736] shutdown complete
    [Mon Dec  7 15:54:00.308 2015] [ 2712] listening on all interfaces, port=5435
    [Mon Dec  7 15:54:00.311 2015] [ 2712] listening on 127.0.0.1:9306
    [Mon Dec  7 15:54:00.315 2015] [ 2712] accepting connections
    [Mon Dec  7 16:01:56.821 2015] [ 2712] caught SIGTERM, shutting down
    [Mon Dec  7 16:01:56.921 2015] [ 2712] rt: index indexer_rt: ramchunk saved in 0.005 sec
    [Mon Dec  7 16:01:57.025 2015] [ 2712] shutdown complete
    [Mon Dec  7 16:01:58.250 2015] [ 3828] listening on all interfaces, port=5435
    [Mon Dec  7 16:01:58.253 2015] [ 3828] listening on 127.0.0.1:9306
    [Mon Dec  7 16:01:58.256 2015] [ 3828] accepting connections
    [Mon Dec  7 16:08:11.362 2015] [ 3828] caught SIGTERM, shutting down
    [Mon Dec  7 16:08:11.415 2015] [ 3828] rt: index indexer_rt: ramchunk saved in 0.005 sec
    [Mon Dec  7 16:08:11.473 2015] [ 3828] shutdown complete
    [Mon Dec  7 16:08:33.491 2015] [ 3964] listening on all interfaces, port=5435
    [Mon Dec  7 16:08:33.495 2015] [ 3964] listening on 127.0.0.1:9306
    [Mon Dec  7 16:08:33.497 2015] [ 3964] accepting connections
    [Mon Dec  7 16:08:52.051 2015] [ 3964] caught SIGTERM, shutting down
    [Mon Dec  7 16:08:52.120 2015] [ 3964] rt: index indexer_rt: ramchunk saved in 0.006 sec
    [Mon Dec  7 16:08:52.145 2015] [ 3964] shutdown complete
    [Mon Dec  7 16:08:52.775 2015] [ 3344] listening on all interfaces, port=5435
    [Mon Dec  7 16:08:52.778 2015] [ 3344] listening on 127.0.0.1:9306
    [Mon Dec  7 16:08:52.778 2015] [ 3344] WARNING: WARNING: index 'indexer_rt': prefix_fields and infix_fields has no effect with dict=keywords, ignoring
    
    [Mon Dec  7 16:08:52.781 2015] [ 3344] accepting connections
    [Mon Dec  7 16:11:47.905 2015] [ 3344] caught SIGTERM, shutting down
    [Mon Dec  7 16:11:47.989 2015] [ 3344] rt: index indexer_rt: ramchunk saved in 0.005 sec
    [Mon Dec  7 16:11:48.031 2015] [ 3344] shutdown complete
    [Mon Dec  7 16:11:48.728 2015] [  192] listening on all interfaces, port=5435
    [Mon Dec  7 16:11:48.731 2015] [  192] listening on 127.0.0.1:9306
    [Mon Dec  7 16:11:48.731 2015] [  192] WARNING: WARNING: index 'indexer_rt': prefix_fields and infix_fields has no effect with dict=keywords, ignoring
    
    [Mon Dec  7 16:11:48.734 2015] [  192] accepting connections
    [Mon Dec  7 16:15:37.668 2015] [  192] caught SIGTERM, shutting down
    [Mon Dec  7 16:15:37.752 2015] [  192] rt: index indexer_rt: ramchunk saved in 0.005 sec
    [Mon Dec  7 16:15:37.857 2015] [  192] shutdown complete
    [Mon Dec  7 16:15:39.810 2015] [ 4580] listening on all interfaces, port=5435
    [Mon Dec  7 16:15:39.813 2015] [ 4580] listening on 127.0.0.1:9306
    [Mon Dec  7 16:15:39.816 2015] [ 4580] accepting connections
    [Mon Dec  7 16:20:45.550 2015] [ 4580] caught SIGTERM, shutting down
    [Mon Dec  7 16:20:45.589 2015] [ 4580] rt: index indexer_rt: ramchunk saved in 0.007 sec
    [Mon Dec  7 16:20:45.613 2015] [ 4580] shutdown complete
    [Mon Dec  7 16:20:47.837 2015] [ 3236] listening on all interfaces, port=5435
    [Mon Dec  7 16:20:47.840 2015] [ 3236] listening on 127.0.0.1:9306
    [Mon Dec  7 16:20:47.844 2015] [ 3236] accepting connections
    [Mon Dec  7 16:21:56.404 2015] [ 3236] caught SIGTERM, shutting down
    [Mon Dec  7 16:21:56.474 2015] [ 3236] rt: index indexer_rt: ramchunk saved in 0.007 sec
    [Mon Dec  7 16:21:56.562 2015] [ 3236] shutdown complete
    [Mon Dec  7 16:22:01.468 2015] [ 4252] listening on all interfaces, port=5435
    [Mon Dec  7 16:22:01.472 2015] [ 4252] listening on 127.0.0.1:9306
    [Mon Dec  7 16:22:01.475 2015] [ 4252] accepting connections
    [Mon Dec  7 16:30:42.807 2015] [ 4252] caught SIGTERM, shutting down
    [Mon Dec  7 16:30:42.845 2015] [ 4252] rt: index indexer_rt: ramchunk saved in 0.005 sec
    [Mon Dec  7 16:30:42.855 2015] [ 4252] shutdown complete
    [Mon Dec  7 16:30:43.833 2015] [ 2728] listening on all interfaces, port=5435
    [Mon Dec  7 16:30:43.836 2015] [ 2728] listening on 127.0.0.1:9306
    [Mon Dec  7 16:30:43.838 2015] [ 2728] accepting connections
    [Mon Dec  7 16:30:54.431 2015] [ 2728] caught SIGTERM, shutting down
    [Mon Dec  7 16:30:54.469 2015] [ 2728] rt: index indexer_rt: ramchunk saved in 0.006 sec
    [Mon Dec  7 16:30:54.495 2015] [ 2728] shutdown complete
    Ответ написан
    Комментировать
  • Как завершить установку или удалить iwlwifi-firmware?

    Alf162
    @Alf162 Автор вопроса
    Проблема разрешилась вот так: olegnim.ru/blog/%D0%BE%D1%88%D0%B8%D0%B1%D0%BA%D0%...
    Ответ написан
    Комментировать
  • Как проверить отставание репликации в PostgreSQL?

    Alf162
    @Alf162 Автор вопроса
    Проблема решена. Вычисляя разницу между тем, что записал триггер в базу и значением pg_last_xact_replay_timestamp() на слэйве, как раз и получаю искомое время задержки.
    Ответ написан
    Комментировать
  • Выбор схемы в postgresql

    Alf162
    @Alf162 Автор вопроса
    Проблема решается:
    SET search_path TO schema_name
    Ответ написан
    Комментировать
  • Возможно ли развернуть локальную систему контроля версий, т.к. нет подключения к интернету?

    Alf162
    @Alf162 Автор вопроса
    Т.е. git или mercurial можно поставить на свой локальный сервер сервер?
    Ответ написан
  • Вызов хранимой процедуры php PDO, firebird?

    Alf162
    @Alf162 Автор вопроса
    Видимо проблема все-таки с PDO. Правильно будет так:
    $sql="EXECUTE PROCEDURE P_NAME_ID ('TFAM','Post body')";
    $sth = $dbo->prepare($sql);
    $r = $res->fetchAll();
    

    Тогда в $r вернется результат выполнения процедуры. Но это не работает почему-то. Зато работает без PDO:
    $db = ibase_connect($database, $user, $password)or die($err_logon);
    $sql= "EXECUTE PROCEDURE P_NAME_ID ('TFAM','Post body')";
    $sql_res = ibase_query($sql, $db);
    
    Ответ написан
    Комментировать
  • Вызов хранимой процедуры php PDO, firebird?

    Alf162
    @Alf162 Автор вопроса
    Без процедур все отлично
    Ответ написан
    Комментировать
  • Какие посоветуете УПСы для сетевого оборудования?

    Alf162
    @Alf162
    У нас все оборудование работает на APC. Проблем практически никаких, работают 24/7, периодически меняем батареи и все
    Ответ написан
    Комментировать
  • Странность с session в php

    Alf162
    @Alf162
    У меня было что-то похожее, дело действительно было в кодировке, откройте в файл в Notepad++ и проверьте, чтобы стояла кодировка UTF-8 без BOM
    Ответ написан
    Комментировать
  • Подсветка слов lucene.net?

    Alf162
    @Alf162 Автор вопроса
    Проблема разрешилась добавлением двух строк:
    parser.SetMultiTermRewriteMethod(MultiTermQuery.SCORING_BOOLEAN_QUERY_REWRITE);
    .....
    query = query.Rewrite(searcher.GetIndexReader());
    
    Ответ написан
    Комментировать