Note: THIS IS NOT PRODUCTON CODE. This SDK is example code to get you started making programmatic calls to AlchemyAPI.
This is a .NET (C#) implementation of the AlchemyAPI SDK. Mono and .NET sections for installation and examples are below. AlchemyAPI keys can be downloaded from alchemyapi.com - 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
To compile this module and generate the AlchemyAPI.dll file, enter the "module" directory and run the "build.sh" script.
To install this module, copy the AlchemyAPI.dll file created from the previous step into your desired .NET import directory, or set your MONO_PATH environment variable to point to the directory containing the compiled AlchemyAPI.dll file.
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 are within the "example" directory.
To run these code samples you must first edit the (example/api_key.txt) file, adding your assigned AlchemyAPI API key.
Compiling Code Samples:
- Run "build.sh" (Compiles code using Mono)
Running Code Samples:
-
Entity Extraction: ./run-test.sh entities.exe
-
Concept Tagging: ./run-test.sh concepts.exe
-
Keyword Extraction: ./run-test.sh keywords.exe
-
Text Categorization: ./run-test.sh categories.exe
-
Language Identification: ./run-test.sh language.exe
-
HTML Text Extraction: ./run-test.sh text_extract.exe
-
HTML Structured Content Scraping: ./run-test.sh constraint_queries.exe
-
Microformats Extraction: ./run-test.sh microformats.exe
-
RSS / ATOM Feed Links Extraction: ./run-test.sh feed_links.exe
-
Sentiment Analysis: ./run-test.sh sentiment.exe
-
Relations Extraction: ./run-test.sh relations.exe
-
Example Parameter Usage: ./run-test.sh parameters.exe
-
Author Extraction ./run-test.sh author.exe
INSTALLATION
To compile this module and generate the AlchemyAPI.dll file, enter the "module" directory and run the "build.bat" script.
To install this module, copy the AlchemyAPI.dll file generated from the previous step into your desired .NET import directory. For purposes of running examples, the dll is copied into the example folder.
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 are within the "example" directory.
To run these code samples you must first edit the (example/api_key.txt) file, adding your assigned AlchemyAPI API key.
Compiling Code Samples:
- Run "build.bat" (Compiles code using .NET)
Running Code Samples:
-
Entity Extraction: entities.exe
-
Concept Tagging: concepts.exe
-
Keyword Extraction: keywords.exe
-
Text Categorization: categories.exe
-
Language Identification: language.exe
-
HTML Text Extraction: text_extract.exe
-
HTML Structured Content Scraping: constraint_queries.exe
-
Microformats Extraction: microformats.exe
-
RSS / ATOM Feed Links Extraction: feed_links.exe
-
Setiment Analysis: sentiment.exe
-
Relations Extraction: relations.exe
-
Example Parameter Usage: parameters.exe
-
Author Extraction: authors.exe
DEPENDENCIES
This module requires a C# compiler such as Mono or Microsoft Visual Studio.NET
The included "build.sh" is for use with the Mono C# compiler only.
COPYRIGHT AND LICENCE
Copyright (C) 2009-2012 Orchestr8, LLC.
This library is free software; you can redistribute it and/or modify it under the same terms as Mono itself, either Mono version 2.2 or, at your option, any later version of Mono 2.2 you may have available.