leopku / bleve-gse-tokenizer

Gse plugin for Bleve search engine. Support English, Chinese and Japanese.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Dict file is not necessary

fy0 opened this issue · comments

commented

Just use text like "zh, jp" is ok.

Thanks for mention.
I will fix it after testing.

commented

@leopku Wait! Seems it's load from GOPATH, and my program crashed on another device:

2022/03/16 19:23:02 Could not load dictionaries: "github.com/go-ego/gse@v0.70.0/data/dict/zh/t_1.txt", open github.com/go-e
go/gse@v0.70.0/data/dict/zh/t_1.txt: no such file or directory

btw: gse takes lot of memory, is any way to reduce memory usage?

Right. App would be crashed if binary file was deployed to another device.

For memory usage, my suggestion is making the function as a service alone.

Closed as it seems not a problem.

Feel free to reopen for any questions.