Code Monkey home page Code Monkey logo

Comments (11)

sing1ee avatar sing1ee commented on August 17, 2024

有什么错误么?

from dict_build.

wwtBlog avatar wwtBlog commented on August 17, 2024

运行的时候没有提示错误,很快就运行完了,语料是网上下载的西游记txt,编码为utf-8
gen sorting...
2017-05-16 14:03:32 [main] INFO dict.build.FastBuilder -start to extract words
sun.net.www.protocol.jar.JarURLConnection$JarURLInputStream@735b478
2017-05-16 14:03:32 [main] INFO dict.build.FastBuilder -build freq TST done!
2017-05-16 14:03:32 [main] INFO dict.build.FastBuilder -start to sort extracted words
2017-05-16 14:03:32 [main] INFO dict.build.FastBuilder -all done

from dict_build.

sing1ee avatar sing1ee commented on August 17, 2024

你用的是哪个代码?直接打包的还是? 看日志不是最新的代码

from dict_build.

wwtBlog avatar wwtBlog commented on August 17, 2024

直接打包到本地mac上,解压之后运行的,我又下载了最新的代码,wordsort.data和word.data还是空的。
2017-05-16 14:25:58 [main] INFO dict.build.FastBuilder -start to extract words
sun.net.www.protocol.jar.JarURLConnection$JarURLInputStream@735b478
2017-05-16 14:25:58 [main] INFO dict.build.FastBuilder -build freq TST done!
2017-05-16 14:25:58 [main] INFO dict.build.FastBuilder -start to sort extracted words
2017-05-16 14:25:58 [main] INFO dict.build.FastBuilder -all done
这是日志

from dict_build.

sing1ee avatar sing1ee commented on August 17, 2024

freqFile 这个文件有内容么

from dict_build.

sing1ee avatar sing1ee commented on August 17, 2024

你在哪里下载的文件我试试。

from dict_build.

wwtBlog avatar wwtBlog commented on August 17, 2024

就是直接右上角download的啊,freq_ngram.data有内容,其他没有

from dict_build.

sing1ee avatar sing1ee commented on August 17, 2024

你的测试的数据文件,哪里下载的,我试试

from dict_build.

wwtBlog avatar wwtBlog commented on August 17, 2024

http://vdisk.weibo.com/s/uoJsvagtvev8U

from dict_build.

sing1ee avatar sing1ee commented on August 17, 2024

文件编码,不是UTF8. 下载这个:西游记UTF8

Top结果

师父	1545	7.247927513443586	3.527650290469952	0.1371395690812608
大圣	1047	6.426264754702098	2.5456136550742494	0.13128460061010055
唐僧	971	6.832890014164742	3.930083100341155	0.43277723258096173
我们	685	5.044394119358453	2.7293239374235605	0.5335176226675881
菩萨	607	9.364134655008051	3.4676913766943906	0.15910495734948696
妖精	604	6.894817763307944	2.955584582292545	0.13134411600669268
见那	438	3.1699250014423126	2.688761729223144	0.11444652908067542
徒弟	407	7.774787059601174	2.3951170564332958	0.15553809897879026
小妖	348	5.584962500721157	2.939566615637408	0.3392018779342723
一声	307	4.08746284125034	2.269805525984046	0.2674922938432581

from dict_build.

wwtBlog avatar wwtBlog commented on August 17, 2024

好了,是文件的问题,太感谢了。

from dict_build.

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.