Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wordninja.lua 死循环 #17

Open
happyDom opened this issue Mar 12, 2023 · 1 comment
Open

wordninja.lua 死循环 #17

happyDom opened this issue Mar 12, 2023 · 1 comment

Comments

@happyDom
Copy link

happyDom commented Mar 12, 2023

wordninja.lua 有bug。无法进行分词,而且有死循环。

@happyDom happyDom changed the title wordninja1.lua 死循环 wordninja.lua 死循环 Mar 12, 2023
@shewer
Copy link
Owner

shewer commented Mar 28, 2023

查詢一下log 是否有錯誤訊息
你的環境 librime 版本 是否支援 librime-lua#131 以上

wordninja 是利用 lua/tools/wordninja.lua wordninja_words.txt
應該不大會出問題,反而 是 lua/english 模組init 時較容易有不相容的問題

可以先在 lua 環境下 測試

--  lua -e 'ninja=require "lua/tools/wordninja" -i
-- > ninja.split("ilovelua")  --> result "i love lua"

ninja=require "lua/tools/wordninja"
ninja.split("ilovelua")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants