Skip to main content

Python access to AlchemyAPI for unstructured text analysis and natural language processing.

Project description

This is a Python implementation of the AlchemyAPI SDK.

INSTALLATION

To install this module, copy the alchemyapi.py file into your desired Python import directory. Three AlchemyAPI Python modules are supplied: 1. Version for Python 2.4.x (requires lxml) 2. Version for Python 2.5.x+ (supports all later 2.x versions, including 2.7.x) 3. Version for Python 3.x.x

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 Orchestr8 API key.

Code Samples:

  1. Entity Extraction: python entities.py

  2. Concept Tagging: python concepts.py

  3. Keyword Extraction: python keywords.py

  4. Text Categorization: python categories.py

  5. Language Identification: python language.py

  6. HTML Text Extraction: python text_extract.py

  7. HTML Structured Content Scraping: python constraint_queries.py

  8. Microformats Extraction: python microformats.py

  9. RSS / ATOM Feed Links Extraction: python feed_links.py

  1. Sentiment analysis example: python sentiment.py

  2. Relations extraction example: python relations.py

  3. Parameters Object example: python params_object.py

  4. Author extraction example: python author.py

  5. Targeted sentiment example: python targeted_sentiment.py

DEPENDENCIES

Python 2.4.x requires lxml:

lxml (available at: http://pypi.python.org/pypi/lxml )

COPYRIGHT AND LICENCE

Copyright (C) 2009-2013 Orchestr8, LLC.

This library is free software; you can redistribute it and/or modify it under the same terms as Python itself, either Python version 2.5 or, at your option, any later version of Python 2.5 you may have available.

Project details


Release history Release notifications | RSS feed

This version

1.0

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page