Natural Language Processing

Dependency Graph to RDF

Written by on September 16, 2018 in Natural Language Processing, Programming, Python with 0 Comments
Dependency Graph to RDF

Dependency parsing is widely used these days, and many NLP tools give a dependency graph as the parsed representation of the input text. See for example, SpacY and TextRazor.  The following is the dependency tree corresponding to the sentence Mary is drinking cold water: The above tree was generated using SpacY. You can see that […]

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

Question Answering Using Dependency Trees

Written by on April 22, 2018 in LISP, Natural Language Processing, Programming with 0 Comments
Question Answering Using Dependency Trees

A few weeks ago I had written about my brief experiment with Mathematica’s new feature, which provides answers to questions based on given text. After that post, I spent some time thinking about how to implement something similar. In today’s post, I want to show you what I have been able to do in the […]

Continue Reading

Natural Language Generation

Written by on April 8, 2018 in LISP, Natural Language Processing, Programming with 0 Comments
Natural Language Generation

I had written a series of posts on my iLangGen framework last year. It aims to provide a flexible and expressive approach for building natural language generation systems. In today’s post, I would like to describe a concrete example of how iLangGen can be used for generating natural language text from structured data, aided by […]

Continue Reading

Question Answering in Mathematica

Written by on March 25, 2018 in Mathematica, Natural Language Processing, Programming with 0 Comments
Question Answering in Mathematica

About 10 days ago, I received an update for Mathematica. The latest version is 11.3.0. As usual, I looked through the list of new features in this release. There are several new features, but one of them attracted my attention immediately: There is a new function FindTextualAnswer that, given a piece of text and a question, can […]

Continue Reading

Kangaroo Words

Written by on March 11, 2018 in LISP, Natural Language Processing, Programming with 0 Comments

According to Wikipedia, “A kangaroo word is a word that contains letters of another word, in order, with the same meaning. For example: the word ‘masculine’ contains the word ‘male’, which is a synonym of the first word; similarly, the word ‘observe’ contains its synonym ‘see’.” Interesting idea. The key point to note is that […]

Continue Reading

Sentiments and Emotions in iLexicon

Written by on February 25, 2018 in LISP, Natural Language Processing, Programming with 0 Comments

Detecting sentiments and emotions in a piece of text are frequently performed activities in Text analysis. There are some API services available for this. For example, meaningcloud.com  has an API for detecting sentiments in the text submitted to it. Another API service provider is aylien.com . Emotion detection for text is supported by qemotion.com. Because […]

Continue Reading

Onomatopoeia, Palindrome and Semordnilap

Written by on February 11, 2018 in LISP, Natural Language Processing, Programming with 0 Comments

I had earlier briefly talked about the Ilexicon project that I have been working on for some time now. The goal is to build an intelligent dictionary that will come in handy while implementing NLP applications such as recognizers and generators. In today’s post, I want to demonstrate some cool features available in iLexicon. At present iLexicon […]

Continue Reading

Rhyming Words and Other Interesting Stuff

Written by on January 27, 2018 in LISP, Natural Language Processing, Programming with 1 Comment
Rhyming Words and Other Interesting Stuff

If you are into writing poems, stories or essays, or you just have a fascination for words, I encourage you to take a look at Datamuse. Recently I was studying about the structure of various poetic forms, and in the process of browing different sites, I stumbled upon Datamuse. I found it to be pretty […]

Continue Reading

Using Function Calls in the Grammar

Written by on October 14, 2017 in LISP, Natural Language Processing, Programming with 0 Comments
Using Function Calls in the Grammar

One of the advanced features of iLangGen is the ability to embed arbitrary function calls on the RHS of grammar rules. Such functions impart interesting dynamic behaviour to the generated data. For convenience and flexibility, iLangGen supports two types of function calls – Direct and Indirect. In the case of the Direct function call, the […]

Continue Reading

Top