Examples

This section describes the metadata and sample reports for the Alchemy Sentiment Analysis Adapter.


Top of page

x
Reference: Alchemy Sentiment Analysis Adapter Metadata

The following table lists and describes the available metadata for the Alchemy Sentiment Analysis Adapter.

Metadata

Description

alchemy

Metadata is used for interacting with the Alchemy web service for sentiment analysis scoring.

The DOC field would contain the textual data that is to be analyzed and scored by the Alchemy Sentiment scorer. Textual data can be joined from a column within a table to the DOC field or set within a WHERE/IF condition.

The following example uses a JOIN statement:

JOIN DOCLINE IN alchemy/alchsampl/alchemy_sample_fix TO DOC IN alchemy/alchemy
END

The following example uses a WHERE/IF condition:

WHERE (DOC CONTAINS 'The Facebook Adapter helps businesses')

A sentiment score between -1 and 1 is returned within the SCORE field.

alchsampl/alchemy_sample_fix

Metadata that defines the sample text file (alchsampl/alchemy_sample.txt) used for the alchemy_sample_join and alchemy_sample_cluster sample reports.

alchsampl/alchemy_sample_cluster

Cluster join between alchsampl/alchemy_sample_fix and alchemy.



x
Reference: Alchemy Sentiment Analysis Adapter Sample Reports

The following table lists and describes the sample reports for the Alchemy Sentiment Analysis Adapter.

Sample Report

Description

alchsampl/alchemy_sample_join

Scores the text passed from the alchsampl/alchemy_sample.txt file performed through a JOIN statement.

alchsampl/alchemy_sample_cluster

Scores the text passed from the alchsampl/alchemy_sample.txt file using the Cluster Join master.

alchsampl/alchemy_sample_where

Scores the text passed within a WHERE statement.


Information Builders