Did you know ... Search Documentation:
Packs (add-ons) for SWI-Prolog

Package "semantria"

Title:Use Semantria natural language API
Rating:Not rated. Create the first rating!
Latest version:0.0.4
SHA1 sum:77341b9825b7411530a718abcad34aedf59f1db1
Author:Michael Hendricks <michael@ndrix.org>
Maintainer:Michael Hendricks <michael@ndrix.org>
Packager:Michael Hendricks <michael@ndrix.org>
Home page:http://packs.ndrix.com/semantria/index.html
Download URL:http://packs.ndrix.com/semantria/semantria-0.0.4.tgz
Requires:condition
func
lambda
uri_qq

Reviews

No reviews. Create the first review!.

Details by download location

VersionSHA1#DownloadsURL
0.0.15302e51847b05c4ff2a8cd6d2386a9020373ce2b3http://packs.ndrix.com/semantria/semantria-0.0.1.tgz
0.0.253d5d64477b043fc1987144e3bca408744d526a54http://packs.ndrix.com/semantria/semantria-0.0.2.tgz
0.0.3212e11a63643f05e550a52fc1fa16fad39bb4c663http://packs.ndrix.com/semantria/semantria-0.0.3.tgz
0.0.477341b9825b7411530a718abcad34aedf59f1db130http://packs.ndrix.com/semantria/semantria-0.0.4.tgz

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

Contents of pack "semantria"

Pack contains 4 files holding a total of 10.1K bytes.