Did you know ... Search Documentation:
Pack semantria -- README.md

Synopsis

:- use_module(library(semantria)).

% provide Semantria API credentials
:- multifile semantria:consumer_key/1,
             semantria:secret_key_md5/1.
semantria:consumer_key("...").
semantria:secret_key_md5("...").

main :-
    process_document("When in the course ...", R),
    format("Sentiment: ~s~n", [R.sentiment_polarity]).

Description

A thin wrapper around the Semantria API for natural language processing.

Changes in this Version

  • Handle UTF-8 responses

Installation

Using SWI-Prolog 7.1 or later:

?- pack_install(semantria).

This module uses semantic versioning.

Source code available and pull requests accepted at http://github.com/mndrix/semantria

author
- Michael Hendricks <michael@ndrix.org>
license
- BSD