On 11/21/2017 09:28 AM, Sean Charles wrote:
> I've recently been using NLTK to analyse and sort text for a project.
>
> Does anybody know of any good libraries, works, general Prolog that I
> might use with SWI ?
It depends a lot on what you want to do. There are some links on
http://www.swi-prolog.org/Links.html (very poorly maintained page;
anyone willing to review and update it?)
SWI-Prolog itself doesn't offer much. It does a few things, such as
Unicode transformations (diacritics removal, case conversion,
normalization), stemming (Snowball), metaphone and a distance
function (isub) that works pretty well for names/identifiers.
Somewhere on my filesystem there is also a Stanford NLP toolkit
interface that manages one or more NLP instances that you can
send sentences and you get back a Prolog representation of the
parser output. Bit rusty, so I don't know how much still works.
If anyone is interested I'll have a look whether I can find it
and put it on github.
You can also use the real/Rserve R interfaces to hook up R's NLP
packages.
You could probably do something similar to NLTK. Today I had a look at
pyswip, but it only seems to embed Prolog into Python, not yet the other
way around. Still, web/pipe-based interaction shouldn't be that hard to
implement and most NLP routines are slow enough to not worry about the
network latency.
Cheers --- Jan
>
> Thank you,
>
> Sean.
>
> --
> You received this message because you are subscribed to the Google
> Groups "SWI-Prolog" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to
swi-prolog+...@googlegroups.com
> <mailto:
swi-prolog+...@googlegroups.com>.
> Visit this group at
https://groups.google.com/group/swi-prolog.
> For more options, visit
https://groups.google.com/d/optout.