Did you know ... | Search Documentation: |
Packs (add-ons) for SWI-Prolog |
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 |
No reviews. Create the first review!.
Version | SHA1 | #Downloads | URL |
---|---|---|---|
0.0.4 | 77341b9825b7411530a718abcad34aedf59f1db1 | 30 | http://packs.ndrix.com/semantria/semantria-0.0.4.tgz |
0.0.3 | 212e11a63643f05e550a52fc1fa16fad39bb4c66 | 3 | http://packs.ndrix.com/semantria/semantria-0.0.3.tgz |
0.0.2 | 53d5d64477b043fc1987144e3bca408744d526a5 | 4 | http://packs.ndrix.com/semantria/semantria-0.0.2.tgz |
0.0.1 | 5302e51847b05c4ff2a8cd6d2386a9020373ce2b | 3 | http://packs.ndrix.com/semantria/semantria-0.0.1.tgz |
:- 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]).
A thin wrapper around the Semantria API for natural language processing.
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
Pack contains 4 files holding a total of 10.1K bytes.