Navigation Menu

Skip to content
This repository has been archived by the owner on May 17, 2018. It is now read-only.

mndrix/semantria

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Prolog interface for Semantria API

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages