Giter VIP home page Giter VIP logo

Comments (5)

qinghua2016 avatar qinghua2016 commented on August 10, 2024

请问你是怎么对cws_dat文件进行压缩的?@alexlee728

from thulac.

alexlee728 avatar alexlee728 commented on August 10, 2024

我是用压缩软件测试的。你可以做个开关,训练模型时候对二进制文件压缩成N个包,用到哪个解压哪个。这样能保证非服务器应用也能用。

from thulac.

alexlee728 avatar alexlee728 commented on August 10, 2024

另外内存过大是应为开始就申请了模型那么大的数据。我觉得要综合考虑,不一定为了快就要全部加载到内存。一般不会有人去对几M以上文本分词,至少说大多数不会。所以可以配置成服务器版本和非服务器版最好,非服务器版要压缩数据并控制内存。

from thulac.

qinghua2016 avatar qinghua2016 commented on August 10, 2024

谢谢 @alexlee728

from thulac.

gzp9595 avatar gzp9595 commented on August 10, 2024

非常感谢您的意见,我们也会考虑这样的做法,尽量减少一开始占用的内存~

from thulac.

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.