Programming

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

Information Extraction Using spaCy’s Pattern Matcher

Written by on July 11, 2019 in Homeopathy, Natural Language Processing, Programming, Python with 0 Comments
Information Extraction Using spaCy’s Pattern Matcher

In the previous article, I explored the Deep Categorization capabilities of MeaningCloud. We saw how a powerful rule-based pattern matching language allowed us to map fragments of unstructured text to custom categories. In today’s post, I want to go through spaCy’s pattern matching capabilities. The version I am using is 2.0.13. Some newer features are available […]

Continue Reading

Text Analysis Using MeaningCloud’s Deep Categorization API

Written by on June 24, 2019 in Homeopathy, Natural Language Processing, Programming with 0 Comments
Text Analysis Using MeaningCloud’s Deep Categorization API

MeaningCloud announced their premium offering “Deep Categorization” service quite recently. You can read about it in this nice blog by Blanca Galego. Compared to the canonical classification models that rely on machine learning using large data sets, MeaningCloud’s deep categorization models use hand-crafted rules that take advantage of “morphosyntactic, semantic and contextual information” to classify a piece […]

Continue Reading

Using NodeJS in Mathematica 12

Written by on June 8, 2019 in Mathematica, Programming with 0 Comments
Using NodeJS in Mathematica 12

In an earlier article, I had described Python integration in Mathematica 12. In addition to Python, NodeJS is also supported as a default “external” language. In today’s article, I will focus on NodeJS integration. By the way, NodeJS support was introduced in Mathematica 11.2. Before using NodeJS with Mathematica 12, the system must be configured […]

Continue Reading

Currying in Mathematica

Written by on May 19, 2019 in LISP, Mathematica, Programming with 0 Comments
Currying in Mathematica

One of the more recent additions to the core Wolfram Language is the “Curry” function. It was introduced in Mathematica ver 11.3 and is still (as of ver 12.0) considered Experimental. In this post, I would like to go over this function briefly. Non-curried functions in Mathematica have to be invoked with the arguments (both […]

Continue Reading

Python Integration in Mathematica 12

Written by on May 5, 2019 in Mathematica, Programming, Python with 0 Comments
Python Integration in Mathematica 12

Mathematica has had Python support since ver 11.2 through ExternalEvaluate[]. In ver 11.3 it was possible to input Python expression in a cell by beginning with “>” character. The good news is that Mathematica 12 has significantly enhanced this integration. Python Cells Let us start with the simplest way to use Python code in Mathematica. […]

Continue Reading

TextContents[ ] Function in Mathematica 12

Written by on April 21, 2019 in Mathematica, Natural Language Processing, Programming with 0 Comments
TextContents[ ] Function in Mathematica 12

Mathematica 12 was released a few days ago.  It has been over a year since version 11.3 came out in March 2018. The long wait appears justified since the new release boasts of numerous improvements and new features across several areas. You may want to read this blog post by Stephen Wolfram. In the area of […]

Continue Reading

OCR Using Azure Computer Vision API

Written by on March 28, 2019 in Image Processing, Programming, Python with 0 Comments
OCR Using Azure Computer Vision API

I have been getting some good feedback on Azure’s Computer Vision API, in particular, the OCR functionality. Although I am not working on any project that requires this functionality at the moment, I thought it would be a good idea to check out the service – just to be “future ready”! This article is not […]

Continue Reading

Top