Prolog

Using Berkeley DB with Sicstus Prolog

Written by on August 18, 2019 in Programming, Prolog with 0 Comments
Using Berkeley DB with Sicstus Prolog

One of the nice features of Sicstus Prolog is the support for storing Terms externally in a Berkeley DB database. Since we can control how the terms are indexed in the database, it is possible to store and retrieve a large amount of Terms (the limit is 2^32-1) fairly efficiently. This can be useful when we work in a […]

Continue Reading

Generating Poetry in Prolog

Written by on August 4, 2019 in Natural Language Processing, Programming, Prolog with 0 Comments
Generating Poetry in Prolog

In an earlier article, I showed how we can generate poetry (with limitations, of course!) using my iLangGen framework. That implementation (in Lisp) made use of iLexicon, a large dictionary of English words, which I have been building over the years. I subsequently ported iLexicon to Prolog and it now works well in SICStus Prolog. […]

Continue Reading

Custom Text Analysis Using TextRazor’s Prolog Engine

Written by on July 21, 2019 in LISP, Natural Language Processing, Programming, Prolog with 0 Comments
Custom Text Analysis Using TextRazor’s Prolog Engine

This is the third part in the series on information extraction from unstructured text. In the first part, we saw how MeaningCloud allows us to specify complex rules to identify custom categories through their Deep Categorization API. The second part covered spaCy’s pattern matcher. Today, I would like to discuss how we can use TextRazor’s “Prolog Engine” to perform […]

Continue Reading

Sicstus Prolog – Building a Windows Executable

Written by on August 19, 2018 in Natural Language Processing, Programming, Prolog with 0 Comments
Sicstus Prolog – Building a Windows Executable

In my previous post, I showed how to build a C-based Windows DLL to execute Prolog predicates in the Sicstus Prolog engine. Today, I want to show how to build an executable (on Windows) from a C/C++ program that uses Sicstus prolog engine. The process is quite simple. In order to make things interesting, I am […]

Continue Reading

Sicstus Prolog – Building a Windows DLL

Written by on August 5, 2018 in C++, Programming, Prolog with 0 Comments
Sicstus Prolog – Building a Windows DLL

Last week I upgraded to the latest version (4.4.1) of Sicstus Prolog for Windows. Since the Prolog engine can be embedded (royalty free) in other applications, it is useful to understand how to create a DLL (on Windows) for this purpose. In today’s article, I would like to outline this process in sufficient detail because I found […]

Continue Reading

Top