Code Monkey home page Code Monkey logo

Comments (20)

ChingO22 avatar ChingO22 commented on August 17, 2024

能不能指教一下,在哪个编译器运行的,怎么在运行?

from dict_build.

YLongo avatar YLongo commented on August 17, 2024

Eclipse
dict.build.Main 这个类

from dict_build.

sing1ee avatar sing1ee commented on August 17, 2024

from dict_build.

yongzhuo avatar yongzhuo commented on August 17, 2024

Main函数没有输入.txt文件的地方啊;那个Builder才有;但是没有结果;只有ngram_left.data有数据

from dict_build.

sing1ee avatar sing1ee commented on August 17, 2024

from dict_build.

yongzhuo avatar yongzhuo commented on August 17, 2024

可以啦,谢谢,问一句,新增的dic新词,是append,是存在什么地方的哇?

from dict_build.

yongzhuo avatar yongzhuo commented on August 17, 2024

words_sort.data没有数据,words.data有数据;我的测试有什么问题,帮我看看,谢谢;见图:
93xc hzs qswz zih5qk1

from dict_build.

sing1ee avatar sing1ee commented on August 17, 2024

目测没看出来什么问题,你debug一下,告诉我结果?

或者你把数据给我,我跑一下

from dict_build.

adrianhust avatar adrianhust commented on August 17, 2024

words_sort.data 和 words.data 都没有数据 sort_ngram_left.data 也没有,不知道什么原因

from dict_build.

sing1ee avatar sing1ee commented on August 17, 2024

from dict_build.

adrianhust avatar adrianhust commented on August 17, 2024

@sing1ee

-rw-rw-r-- 1 work work 5898702366 4月  11 11:20 ngram_sort.data
-rw-rw-r-- 1 work work  334055236 4月  11 11:27 freq_ngram_sort.data
-rw-rw-r-- 1 work work 5898707516 4月  11 11:27 ngram.data
-rw-rw-r-- 1 work work  334058863 4月  11 11:27 freq_ngram.data
-rw-rw-r-- 1 work work          0 4月  11 11:27 freq_ngram_left.data
-rw-rw-r-- 1 work work          0 4月  11 11:34 sort_ngram_left.data
-rw-rw-r-- 1 work work          0 4月  11 11:36 freq_ngram_left_sort.data
-rw-rw-r-- 1 work work 5898707516 4月  11 11:36 ngram_left.data
-rw-rw-r-- 1 work work          0 4月  11 11:36 merge_entropy.data
-rw-rw-r-- 1 work work          0 4月  11 11:37 merge.tmp2
-rw-rw-r-- 1 work work  334055236 4月  11 11:37 merge.tmp
-rw-rw-r-- 1 work work          0 4月  11 11:37 words.data
-rw-rw-r-- 1 work work          0 4月  11 11:40 words_sort.data

只有这些中间结果

from dict_build.

sing1ee avatar sing1ee commented on August 17, 2024

from dict_build.

shenlan211314 avatar shenlan211314 commented on August 17, 2024

请问是如何解决的呢?
我现在是windows/linux运行后words_sort.data无结果,words.data有结果。但是mac下都有结果。

在dict.build.Main下修改filepath为训练文件路径也不可以呢,看调用的数据没有数据处理步骤。

from dict_build.

sing1ee avatar sing1ee commented on August 17, 2024

试一下最新的代码

from dict_build.

bhan97 avatar bhan97 commented on August 17, 2024

@sing1ee 你好,我用你最新的代码,txt文件右下角
图片的运行时间特别短,words_sort.data和words.data都是空,而且其他各个结果文件里都是乱码韩文繁体字什么的。
运行过程下方:
图片

只有txt文件右下角
图片
运行正常。

from dict_build.

sing1ee avatar sing1ee commented on August 17, 2024

@bhan97 那应该就是编码的问题了,确认下,是最新的代码么?以及看下输入文件的字符集?

from dict_build.

bhan97 avatar bhan97 commented on August 17, 2024

@sing1ee 代码是最新的 之前删掉重新下载了 文件最后改动日期都是4月8号 输入文件都是 纯中文简体

from dict_build.

sing1ee avatar sing1ee commented on August 17, 2024

@bhan97 字符集是指中文的编码,utf8,还是gbk?

from dict_build.

bhan97 avatar bhan97 commented on August 17, 2024

@sing1ee 哦哦 明白了 非常感谢!!

from dict_build.

bhan97 avatar bhan97 commented on August 17, 2024

@sing1ee 你好,问下为什么 命令行跑出来生成文件没有问题,用eclipse跑dict.build.Main 文件几乎是空的
图片
图片

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.