Git Product home page Git Product logo

Comments (6)

ansjsun avatar ansjsun commented on May 20, 2024

https://github.com/ansjsun/ansj_seg/wiki/%E7%94%A8%E6%88%B7%E8%87%AA%E5%AE%9A%E4%B9%89%E8%AF%8D%E5%85%B8%E8%B7%AF%E5%BE%84%E8%AE%BE%E7%BD%AE

有好几种加载自定义词典的方法看这里

from ansj_seg.

jamesDeng avatar jamesDeng commented on May 20, 2024

加载方式我是看过的,还是觉得很不方便.....

我说的第二个问题是加载文件和加载文件夹出来的分词效果是不一样的

from ansj_seg.

ansjsun avatar ansjsun commented on May 20, 2024

第二个用文件夹方式加载..词典文件的后缀必须是dic

On 2013-5-17, at 下午3:14, jamesDeng [email protected] wrote:

加载方式我是看过的,还是觉得很不方便.....

我说的第二个问题是加载文件和加载文件夹出来的分词效果是不一样的


Reply to this email directly or view it on GitHub.

from ansj_seg.

jamesDeng avatar jamesDeng commented on May 20, 2024

例子里的
MyStaticValue.userDefinePath="E:/library/userLibrary.dic";
我是只是把它改为了
MyStaticValue.userDefinePath="E:/library"

文件夹里的文件是没有变动

如果你需要我可以把userLibrary.dic发到你邮箱中

from ansj_seg.

ansjsun avatar ansjsun commented on May 20, 2024

这种方式应该只能填写文件名吧...

你可以不修改这个..
建议你用这个方式来添加

file 是 "目录/文件"
如果是目录..他只会扫描目录中dic后缀的文件..
UserDefineLibrary.loadFile(UserDefineLibrary.FOREST, file) ;

这个方法..在任何时间都可以调用..不用分词加载前

On 2013-5-22, at 下午3:04, jamesDeng [email protected] wrote:

例子里的
MyStaticValue.userDefinePath="E:/library/userLibrary.dic";
我是只是把它改为了
MyStaticValue.userDefinePath="E:/library"

文件夹里的文件是没有变动的


Reply to this email directly or view it on GitHub.

from ansj_seg.

ansjsun avatar ansjsun commented on May 20, 2024

楼上的...修复了呵呵...感谢randing89童鞋

from ansj_seg.

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.