Comments (4)
count_grams自动生成字符集。这里的vocab_file仅仅是要保存的文件名,不是现成的文件。
from word-discovery.
corpus_file = 'thucnews.corpus' # 语料保存的文件名
vocab_file = 'thucnews.chars' # 字符集
ngram_file = 'thucnews.ngrams' # ngram集
output_file = 'thucnews.vocab' # 最后导出的词表
恩恩,这些我明白,都是运行过程中保存的文件
from word-discovery.
终于解决了,可以跑了,linux下安装kenlm倒腾了好久-_-
from word-discovery.
终于解决了,可以跑了,linux下安装kenlm倒腾了好久-_-
老哥 留个QQ啊 交流一下 谢谢 我的1136899882
加你了,大佬
from word-discovery.
Related Issues (12)
- 字符集 怎么来的,代码报错了 HOT 2
- 关于total的理解为何是总字数? HOT 3
- 卡在了得到候选词 HOT 1
- total的计算方式,是否有问题 HOT 2
- 程序卡住了,请问怎么解决
- PMI计算的准确性问题
- 代码75-76行 HOT 1
- 生成的词表是单个字的形式 HOT 4
- ValueError: Failed to count ngrams by KenLM. HOT 8
- 如果在window or macbook pro的pycharm 操行? HOT 1
- 小数据集能跑,但 800M 的数据就卡住,请问应该如何排查? HOT 5
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 word-discovery.