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

java项目依赖mynlp,无法调用,找不到类和方法 #31

Open
on1you opened this issue Sep 16, 2020 · 3 comments
Open

java项目依赖mynlp,无法调用,找不到类和方法 #31

on1you opened this issue Sep 16, 2020 · 3 comments

Comments

@on1you
Copy link

on1you commented Sep 16, 2020

<dependency>
            <groupId>com.mayabot.mynlp</groupId>
            <artifactId>mynlp</artifactId>
            <version>3.2.2</version>
</dependency>

这个整合的包,无法调用fasttext包下的方法

下面这个独立的包是可以的,要如何解决啊,下面这个不更新了,有的方法没有

<dependency>
            <groupId>com.mayabot.mynlp</groupId>
            <artifactId>fastText4j</artifactId>
            <version>3.1.7</version>
</dependency>
@jimichan
Copy link
Member

我本地把maven缓存清理重新下载测试没问题,你检查一下你的maven本地仓库中mynlp.jar是否完整,大小应该在1M左右

@on1you
Copy link
Author

on1you commented Sep 17, 2020

我本地把maven缓存清理重新下载测试没问题,你检查一下你的maven本地仓库中mynlp.jar是否完整,大小应该在1M左右

jar包是没有问题的,就是1M
image

里面的class点不开,会不会是这个原因
image

@jimichan
Copy link
Member

你应该使用了spring boot maven pom.
如果是gradle可以指定kotlin版本
ext['slf4j.version'] = '1.7.20'
也可以强制引用kotlin版本为1.4.0
你反编译失败是因为kotlin插件版本太低

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

2 participants