Giter Site home page Giter Site logo

Comments (8)

meskgron avatar meskgron commented on June 12, 2024

ref: https://github.com/pawelsalawa/sqlitestudio/wiki/User_Manual#sqlite-extensions

from simple.

wangfenjin avatar wangfenjin commented on June 12, 2024

你的路径不对吧,没用过这个软件

from simple.

meskgron avatar meskgron commented on June 12, 2024

这个我i理解和代码中 loadextension是一个功能,i对比了文档上要求,没有找到原因,大佬有空可以看下
而且我加载其他的extension没有问题

from simple.

wangfenjin avatar wangfenjin commented on June 12, 2024

注意你的系统是 x86 还是 x64,如果不确定就都试一下

751657351307_ pic

from simple.

l1t1 avatar l1t1 commented on June 12, 2024

dll放在sqlite目录下没问题,其他目录调用结巴有问题

sqlite> .load d:/sqlite/libsimple-windows-x86/simple.dll

sqlite> CREATE VIRTUAL TABLE t1 USING fts5(text, tokenize = 'simple');

sqlite> INSERT INTO t1 VALUES ('中华人民共和国国歌');

sqlite> select simple_highlight(t1, 0, '[', ']') as text from t1 where text match simple_query('中华国歌');
[中华]人民共和[国国歌]

sqlite>  select simple_highlight(t1, 0, '[', ']') as text from t1 where text match jieba_query('中华国歌');
2023-06-03 17:49:32 D:\a\_temp\windows\cppjieba\src\cppjieba\include\cppjieba\DictTrie.hpp:203 FATAL exp: [ifs.is_open()] false. open ./dict/jieba.dict.utf8 failed.

把dll和dict目录移动到d:/sqlite

sqlite> .load ./simple.dll
sqlite>  select simple_highlight(t1, 0, '[', ']') as text from t1 where text match jieba_query('中华国歌');
Parse error: no such table: t1
sqlite> CREATE VIRTUAL TABLE t1 USING fts5(text, tokenize = 'simple');
sqlite> INSERT INTO t1 VALUES ('中华人民共和国国歌');
sqlite>  select simple_highlight(t1, 0, '[', ']') as text from t1 where text match jieba_query('中华国歌');
[中华]人民共和国[国歌]
``

from simple.

wangfenjin avatar wangfenjin commented on June 12, 2024

jieba_dict() 指定 dict 的目录,只需要调用一次,需要在调用 jieba_query() 之前指定。

from simple.

wangfenjin avatar wangfenjin commented on June 12, 2024

sql = "select jieba_dict('" + dict_path + "')";

from simple.

l1t1 avatar l1t1 commented on June 12, 2024

谢谢

from simple.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.