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

load 官方python版bin classifier 报错 #16

Open
xikunlun001 opened this issue Apr 22, 2019 · 3 comments
Open

load 官方python版bin classifier 报错 #16

xikunlun001 opened this issue Apr 22, 2019 · 3 comments

Comments

@xikunlun001
Copy link

想请问下是否可以load 用facebook官方python接口训练出的bin classifier
我直接load 会报错:
Exception in thread "main" java.lang.RuntimeException: Model file has wrong file format!
at com.mayabot.mynlp.fasttext.LoadFastTextFromClangModel.loadCModel(LoadFastTextFromClangModel.kt:32)
at com.mayabot.mynlp.fasttext.LoadFastTextFromClangModel.loadCModel(LoadFastTextFromClangModel.kt:124)
at com.mayabot.mynlp.fasttext.FastText$Companion.loadFasttextBinModel(FastText.kt:366)
at com.mayabot.mynlp.fasttext.FastText.loadFasttextBinModel(FastText.kt)

@jimichan
Copy link
Member

jimichan commented Mar 6, 2020

<dependency>
  <groupId>com.mayabot.mynlp</groupId>
  <artifactId>fastText4j</artifactId>
  <version>3.1.0</version>
</dependency>

这个版本兼容最新的bin文件格式,你可以试试

@ares89
Copy link

ares89 commented May 25, 2020

使用了3.1.2依然报错哦

@jimichan
Copy link
Member

jimichan commented Jun 22, 2020 via email

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

3 participants