Comments (4)
@kingwa5 自定义词典这里,我用你的代码测下来是正常的,没有重现。
另外,你说的是哪个例子看不出区别?
from jieba.net.
更新:
找到bug所在了!原来是custom dict的路径写错了,jieba没有找到这个文件,按理说应该报错的,但没有报错,导致我一直没发现是路径的问题。现在segmenter.LoadUserDict功能正常了。
原帖:
.NET4.5, 和你出现了相同的问题,segmenter.LoadUserDict没有报错,但是也没有起作用(segmenter.Cut和posSeg.Cut均无效)。但使用segmenter.AddWord添加的自定义词典就能起作用。你们解决了吗?
from jieba.net.
//添加自定义词语
segmenter.LoadUserDict("shu_biao_tong_industry.txt");
请问一下,.NET 控制台的情况下 采用相对路径时,是这样设置自定义字典路径的吗?我这样设置了之后还是不能分词,另,这个文件是放在Resources文件夹下的!
我测试了传入全路径的情况依然没有效果!
from jieba.net.
我测试的是CutForSearch才有效,Cut无效
from jieba.net.
Related Issues (20)
- 如何启用 停用词库,感觉默认的好像没有去除停用词
- 请问自定义词库的方法可以多次调用么,还是说只能调用一次,多个自定义词库文件该如何处理呢? HOT 1
- .Net Core 3.1 LoadUserDict 下,會出現 Unhandled exception. System.UnauthorizedAccessException: Access to the path HOT 2
- 自定义字典中读取中文乱码导致不能匹配
- How to config the ConfigFileBaseDir in Abp framework HOT 2
- 自定义字典问题
- 请问支不支持VS2013
- newtonsoft.json.12.0.3 版本能不能降低成4.几?谢谢 HOT 2
- 今天4:50某某某领了一只记号笔中的4:50为什么不能识别成时间???
- 建议支持日期时间格式,不必拆分成为几个独立的数字,建议日期时间为完整的词
- AddWord
- 词性分析时调用自定义词典的方法 HOT 1
- 想邀请您的项目在 Gitee 同步代码并加入 dotNET China 组织(非微软官方)
- KeywordProcessor提词不准确
- highlighter返回结果问题
- 同义支持 HOT 2
- 不同分词实例加载不同字典怎么实现 HOT 4
- 有Net Core版本的使用示例吗
- JiebaNet.Segmenter是不是没用到停用词
- System.Text.Json 代替 Newtonsoft.Json
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jieba.net.