Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

大量数据的效率问题 #1

Open
qiaofei32 opened this issue Dec 19, 2016 · 3 comments
Open

大量数据的效率问题 #1

qiaofei32 opened this issue Dec 19, 2016 · 3 comments

Comments

@qiaofei32
Copy link

如果是大量的数据,效率会不会很低?

@medivhna
Copy link

实测,i7-6700K,32G内存的电脑,处理40W的语料库,大约需要3-5分钟。

效率还是很可观的

@WLswert
Copy link

WLswert commented Jun 28, 2017

这个太耗内存了,我40万行的数据,竟然要吃掉14G的内存,作者可以考虑优化下。

@Moonshile
Copy link
Owner

确实有一些Idea可以处理语料库过大的情况。

  1. 假设语料库的分布式一致的,可以将语料库切分成若干个较小的子库,然后再进行处理。
  2. 可以先限制最长词语的长度,然后将每个词作为一个“字”继续进行分词。

当然实现细节上还需要考虑更多,就不展开了。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants