noearc / jieba-lua Goto Github PK
View Code? Open in Web Editor NEW结巴分词(lua版)
结巴分词(lua版)
报错信息如下:
Error executing lua .../AppData/Local/nvim-data/lazy/jieba-lua/lua/jb_utils.lua:2: module 'lua-utf8' not found:
no field package.preload['lua-utf8']
cache_loader: module lua-utf8 not found
cache_loader_lib: module lua-utf8 not found
no file '.\lua-utf8.lua'
no file 'C:\Program Files\Neovim\bin\lua\lua-utf8.lua'
no file 'C:\Program Files\Neovim\bin\lua\lua-utf8\init.lua'
no file '.\lua-utf8.dll'
no file 'C:\Program Files\Neovim\bin\lua-utf8.dll'
no file 'C:\Program Files\Neovim\bin\loadall.dll'
stack traceback:
[C]: in function 'require'
.../AppData/Local/nvim-data/lazy/jieba-lua/lua/jb_utils.lua:2: in main chunk
[C]: in function 'require'
...tor/AppData/Local/nvim-data/lazy/jieba-lua/lua/jieba.lua:2: in main chunk
[C]: in function 'require'
...pData/Local/nvim-data/lazy/jieba.nvim/lua/jieba_nvim.lua:2: in main chunk
[C]: in function 'require'
[string ":lua"]:1: in main chunk
重新进入nvim恢复之前的session会没有办法使用分词;
编辑完一个文件切换另一个Buffer的时候也会没有办法立即适应当前环境中的Lines。
最好在触发事件里加入BufEnter。
vim.api.nvim_create_autocmd({ "InsertLeave", "TextChanged", "TextChangedI", "BufEnter" }, { callback = update_lines })
不过我感觉是不是频繁切换重新调用计算开销会很大,能不能把计算范围缩小到当前可视页面,或者每次只计算上一个或下一个分词的位置。
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.