gschoeni / alchemyapi_java

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

================================ AlchemyAPI Java SDK: version 0.9

This is a Java implementation of the AlchemyAPI 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:

  1. Entity Extraction: java -jar ../dist/AlchemyAPI-Entity-Test.jar

  2. Concept Tagging: java -jar ../dist/AlchemyAPI-Concept-Test.jar

  3. Keyword Extraction: java -jar ../dist/AlchemyAPI-Keyword-Test.jar

  4. Text Categorization: java -jar ../dist/AlchemyAPI-Category-Test.jar

  5. Language Identification: java -jar ../dist/AlchemyAPI-Language-Test.jar

  6. HTML Text Extraction: java -jar ../dist/AlchemyAPI-TextExtract-Test.jar

  7. HTML Structured Content Scraping: java -jar ../dist/AlchemyAPI-ConstraintQuery-Test.jar

  8. Microformats Extraction: java -jar ../dist/AlchemyAPI-Microformats-Test.jar

  9. RSS / ATOM Feed Links Extraction: java -jar ../dist/AlchemyAPI-FeedLinks-Test.jar

  10. Sentiment Analysis: java -jar ../dist/AlchemyAPI-Sentiment-Test.jar

  11. Relations: java -jar ../dist/AlchemyAPI-Relations-Test.jar

  12. Example of using the parameters object: java -jar ../dist/AlchemyAPI-Parameter-Test.jar

  13. Author Extraction: java -jar ../dist/AlchemyAPI-Author-Test.jar

  14. Combined Data Extraction: java -jar ../dist/AlchemyAPI-Combined-Test.jar

  15. Ranked Taxonomy Extraction: java -jar ../dist/AlchemyAPI-Taxonomy-Test.jar

  16. 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.

About

License:Apache License 2.0


Languages

Language:Java 100.0%