Can't make iprc #34

Open
Rudloff opened this Issue Jan 22, 2013 · 5 comments

Comments

Projects
None yet
2 participants
Owner

wikireader commented Jan 23, 2013

seems to be this:
PHP Fatal error: Call-time pass-by-reference has been removed in /home/pierre/Bureau/wikireader/host-tools/offline-renderer/mediawiki-offline/wr_parser_sa.php on line 70

which is this: echo wfParseTextAndWrapWOC(&$body);

must be the & thats giving the error

Seems to work without it in my test, so I checked it a change.
Woull you pull again and see if it works

Owner

wikireader commented Jan 24, 2013

Looks like mecab is broken, the API has changed or needs some different configuration

Temporarily add code to make this a warning and drop the offending text.
Likely all Japanese text in the data file will be omitted
Will try to fix properly later.

Rudloff commented Jan 24, 2013

It works, thanks ! (But I indeed have warnings on Japanese text.)

Owner

wikireader commented Jan 24, 2013

To answer my own question, the seemingly minor change from mecab 0.98 to mecab 0.99
looks lik a complete API rewrite :( dpkg-query -l shows this to be changed from libmecab1 to libmecab2

A little Google give this:

http://code.google.com/p/mecab/issues/detail?id=1

which shows the same error.

there is an attaced file on the above bug report which appears to be the new form
of decoder loop using the new API calls looks like host-tools/offline-renderer/LanguageTranslation.py
need to be rewritten to follow:
http://mecab.googlecode.com/issues/attachment?aid=10001000&name=test.py&token=3Hf-q4S8rVlYzVgGJhY0Ds3xHn8%3A1359009887903

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment