简体   繁体   English

在Eclipse中将IBM Watson软件包添加到Java代码

[英]Adding IBM Watson Package to Java code in Eclipse

I am working on creating Java code to analyze text using IBM Watson Natural Language Understanding . 我正在创建Java代码以使用IBM Watson自然语言理解来分析文本。 I am using Eclipse Luna on a MacBook Pro. 我在MacBook Pro上使用Eclipse Luna。

I have built the Maven Project, created an account with IBM (access key, etc.) and am using GitHub to get the code. 我已经构建了Maven项目,并使用IBM(访问密钥等)创建了一个帐户,并且正在使用GitHub来获取代码。

The problem I am having is the package. 我遇到的问题是包装。 This is the line: package com.ibm.watson.developer_cloud.natural_language_understanding.v1; 这是一行:包com.ibm.watson.developer_cloud.natural_language_understanding.v1;

I was hoping that setting up Maven would provide a link to the package but it does not. 我希望设置Maven可以提供指向该软件包的链接,但事实并非如此。 I've been trying to find where and how to download the package into Eclipse with no luck. 我一直在尝试找到将软件包下载到Eclipse的位置和方式,但是没有运气。

Any advice on how to get and install the package? 关于如何获取和安装软件包的任何建议?

Thank you. 谢谢。

hi I think you need to have a deeper look at the Githup page that you mentioned in the Question. 嗨,我认为您需要更深入地了解问题中提到的Githup页面。

If Maven is failing to import the library I'm assuming that you need to add this to your pom.xml 如果Maven无法导入库,我假设您需要将其添加到pom.xml中

<dependency>
    <groupId>com.ibm.watson.developer_cloud</groupId>
    <artifactId>java-sdk</artifactId>
    <version>4.0.0</version>
</dependency>

Let me know if it works for you, I can provide additional help if needed. 让我知道它是否对您有用,如有需要,我可以提供其他帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM