aotd1 / mystem Goto Github PK
View Code? Open in Web Editor NEWWrapper for Yandex mystem morphological analysis program
License: MIT License
Wrapper for Yandex mystem morphological analysis program
License: MIT License
Сейчас mystem запускается каждый раз при попытке разбора слова/фразы.
Вполне можно оставлять процесс работающим и лишь передавать ему новые данные, забирать результат.
Оригинальный архив с http://api.yandex.ru/mystem/downloads/ имеет некорректный с точки зрения php формат/контрольную сумму.
Как воспроизвести:
<?php
$archive = new \PharData(__DIR__ . '/' . 'mystem-3.0-macosx10.8.tar.gz');
$archive->extractTo(__DIR__ . '/', null, true);
Текст ошибки:
PHP Fatal error: Uncaught exception 'UnexpectedValueException' with message 'phar error: "/Users/aotd/www/mystem/.reports/mystem-3.0-macosx10.8.tar.gz" is a corrupted tar file (checksum mismatch of file "17 gid=593637566
18 uid=1368974053
20 ctime=1402062335
20 atime=1402302766
23 SCHILY.dev=16777220
23")' in /Users/aotd/www/mystem/.reports/untar.php:3
Stack trace:
#0 /Users/aotd/www/mystem/.reports/untar.php(3): PharData->__construct('/Users/aotd/www...')
#1 {main}
thrown in /Users/aotd/www/mystem/.reports/untar.php on line 3
Возможные причины:
https://bugs.php.net/bug.php?id=64343
The extractTo() method in Phar doesn't seem to work with tar archives generated
using the BSD version of the tar tool, which is the version that comes pre-
installed on Mac OS X.
Снова поменялись пути до бинарных файлов в архивах от Яндекса. См. #5
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.