Closed 99MengXin closed 1 year ago
Hi!
The issue with MeCab parser says it all: MeCab is not detected, you need to install it separately. Don't forget to install it inside your Docker container 😉
You should be able to use LWT for Japanese only with regular expressions with the results are not so good. What is the error message?
Hope that helps you!
Hi, thanks for your swift reply.
I re-bulit container again without MeCab
. It was the same error when I chose regular expressions
but MeCab
.
Now the texts of Japanese with MeCab
and regular expressions
works after installation. 🙂
Could one installation solve two problems?
I found 2 ways for docker users to install MeCab from here.
Input 2 commands via Terminal, and change lwt
if you named your container with other name.
docker exec -it lwt bash
apt-get update && apt-get install -y mecab libmecab-dev mecab-ipadic-utf8
Amended Dockerfile
, copy and paste below command at Line No. 8 of Dockerfile
.
RUN apt-get update && apt-get install -y mecab libmecab-dev mecab-ipadic-utf8
Thanks for your suggestion! I will add it to the documentation!
It was the same error when I chose regular expressions but MeCab
By the way, I noticed another error: the RegExp should alternate between mecab
and \x{4E00}-\x{9FFF}\x{F900}-\x{FAFF}\x{3040}-\x{30FF}\x{31F0}-\x{31FF}
but I think it wasn't, hence your problem. I pushed a fix right now.
Describe the bug Can not open texts of Japanese.
To Reproduce Steps to reproduce the behavior:
Languages
New Language
Language Settings Wizard
Chinese (Traditional)
and I want to study:Japanese
Set Language Settings
Save
Texts
New Text ...
Language
and chooseJapanese
Title
and pasteN5レベル
Text
and paste今日、図書館に行きました。
Save and Open
Expected behavior Open the text normally.
Screenshots
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context Both selections (
Regular Expressions
andMeCab
) ofRegExp Word Characters
have been tested but fail.