Coder Social home page Coder Social logo

加载模型出错 about fasttext4j HOT 6 CLOSED

mayabot avatar mayabot commented on May 20, 2024
加载模型出错

from fasttext4j.

Comments (6)

jimichan avatar jimichan commented on May 20, 2024

from fasttext4j.

yudian931122 avatar yudian931122 commented on May 20, 2024

也是通过这个java版本训练出来的
刚才又训练一个数据量小一点,加载没问题
这是为啥呀

from fasttext4j.

yudian931122 avatar yudian931122 commented on May 20, 2024

有办法吗?大佬 @jimichan

from fasttext4j.

jimichan avatar jimichan commented on May 20, 2024

数据能不能发来我测试一下,把你的训练参数代码也给我看一下.

[email protected]

from fasttext4j.

yudian931122 avatar yudian931122 commented on May 20, 2024

数据能不能发来我测试一下,把你的训练参数代码也给我看一下.

[email protected]

数据不太方便给,见谅哈
目前猜测可能是某些特殊字符导致的这个问题,我用'[^\\u4E00-\\u9FFF]'正则去掉所有字符后,再训练模型是可以加载的
参数:
InputArgs inputArgs = new InputArgs();
inputArgs.setLoss(LossName.softmax);
inputArgs.setLr(1D);
inputArgs.setDim(100);
inputArgs.setWordNgrams(3);
inputArgs.setEpoch(25);

from fasttext4j.

jimichan avatar jimichan commented on May 20, 2024

能解决就好

from fasttext4j.

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.