This is a Java implementation of the AlchemyAPI SDK - Please note that this legacy AlchemyAPI SDK is no longer supported by IBM. Please use the Watson SDKs https://github.com/watson-developer-cloud?utf8=✓&query=sdk
INSTALLATION
AlchemyAPI Java SDK provides Ant build files for systems lacking JUnit, an addition to JUnit-enabled build files. To build AlchemyAPI Java SDK without JUnit tests, type the following Ant command:
ant jar
If you desire to build AlchemyAPI Java SDK with JUnit tests enabled, rename your Ant .xml files and build using the following commands:
ln -sf build_with_tests.xml build.xml; ant jar
RUNNING EXAMPLES
Several code examples are included to illustrate using the AlchemyAPI for named entity extraction, text classification, language identification, and other tasks.
All code samples should be run from within the "testdir" directory.
To run these code samples you must first edit the (testdir/api_key.txt) file, adding your assigned AlchemyAPI key.
Code Samples:
-
Entity Extraction: java -jar ../dist/AlchemyAPI-Entity-Test.jar
-
Concept Tagging: java -jar ../dist/AlchemyAPI-Concept-Test.jar
-
Keyword Extraction: java -jar ../dist/AlchemyAPI-Keyword-Test.jar
-
Text Categorization: java -jar ../dist/AlchemyAPI-Category-Test.jar
-
Language Identification: java -jar ../dist/AlchemyAPI-Language-Test.jar
-
HTML Text Extraction: java -jar ../dist/AlchemyAPI-TextExtract-Test.jar
-
HTML Structured Content Scraping: java -jar ../dist/AlchemyAPI-ConstraintQuery-Test.jar
-
Microformats Extraction: java -jar ../dist/AlchemyAPI-Microformats-Test.jar
-
RSS / ATOM Feed Links Extraction: java -jar ../dist/AlchemyAPI-FeedLinks-Test.jar
-
Sentiment Analysis: java -jar ../dist/AlchemyAPI-Sentiment-Test.jar
-
Relations: java -jar ../dist/AlchemyAPI-Relations-Test.jar
-
Example of using the parameters object: java -jar ../dist/AlchemyAPI-Parameter-Test.jar
-
Author Extraction: java -jar ../dist/AlchemyAPI-Author-Test.jar
-
Combined Data Extraction: java -jar ../dist/AlchemyAPI-Combined-Test.jar
-
Ranked Taxonomy Extraction: java -jar ../dist/AlchemyAPI-Taxonomy-Test.jar
-
Image Extraction: java -jar ../dist/AlchemyAPI-Image-Test.jar
DEPENDENCIES
This module requires these other modules and libraries:
Java JDK 1.5.x ANT (to build the packages) JUnit (optional, to build the tests)
COPYRIGHT AND LICENCE
Copyright (C) Orchestr8, LLC.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl version 5.8.5 or, at your option, any later version of Perl 5 you may have available.