admin

rss feed

Generating Poetry Using RiTa

Written by on December 16, 2018 in Natural Language Processing, Programming with 0 Comments
Generating Poetry Using RiTa

A few days ago, I came across a nice library called RiTa, which is described as a software toolkit for computational literature. Its two major features are text analysis and text generation.  The text analysis module parses given text to extract sentences, tokens, POS, stresses, and phonemes. There is also interesting functionality to conjugate verbs, […]

Continue Reading

Parsing Text with MeaningCloud’s Text Analytics API

Written by on December 9, 2018 in LISP, Natural Language Processing, Programming with 0 Comments
Parsing Text with MeaningCloud’s Text Analytics API

There is wide-spread interest in Natural Language Processing (NLP) today, and there are several API services available to cater to this demand. See this article for a fairly detailed list of services. All of them support multiple languages, including English. Today, I am going to share my experience in working with MeaningCloud’s Text Analytics API, […]

Continue Reading

Book Review: Functional Programming in C++

Written by on December 2, 2018 in Book Review, C++, Programming with 1 Comment

Title: Functional Programming in C++: How to improve your C++ programs using functional techniques Author: Ivan Cukic Publisher: Manning Publications Co. Year: 2019 This book came out recently, about a week ago. I bought it immediately, and when I started to read it, I couldn’t put it down! Very informative and well written. If you […]

Continue Reading

Flora-2 and Acupuncture

Written by on November 21, 2018 in Acupuncture, Flora-2, Knowledge Representation, Programming with 0 Comments
Flora-2 and Acupuncture

In my previous post I gave examples of modeling homeopathy remedies using Flora-2. Today I want to show an example from a completely different domain namely, Acupuncture. Acupuncture is an ancient system of Chinese medicine and is practised in many countries. It is based on the principle that our body has several meridians, which are pathways for […]

Continue Reading

Simulating Possible Worlds in Flora-2

Written by on November 12, 2018 in Flora-2, Knowledge Representation, Programming with 0 Comments
Simulating Possible Worlds in Flora-2

The idea of encountering different worlds with varying truths is an interesting one. It has deep connections to philosophy and logic. For a nice discussion, see this article. Today, we are going to take advantage of Flora-2‘s module system to simulate possible worlds. Flora-2 allows us to dynamically associate any knowledge base (KB) with any […]

Continue Reading

Modeling Homeopathic Remedy Keynotes in Flora-2

Modeling Homeopathic Remedy Keynotes in Flora-2

In my last post, I got started with Flora-2 and showed how we can model homeopathic remedies from a therapeutics perspective. Although such a limited view of remedies can be helpful in treating acute ailments, for treating chronic diseases, a comprehensive understanding of the various remedies from the perspective of keynotes, kingdom classification and miasms […]

Continue Reading

Flora-2: An Expressive Knowledge Representation System

Written by on October 28, 2018 in Flora-2, Homeopathy, Knowledge Representation, Programming with 0 Comments
Flora-2: An Expressive Knowledge Representation System

I am always on the lookout for a good Knowledge Representation (KR) system that facilitates modeling and reasoning about real-world knowledge. I have experience with KnowledgeWorks available in LispWorks since I have used it in a few projects. I have also taken a cursory look at PowerLoom and Racer. Last week, I came across Flora-2 and its commercial counterpart ErgoAI from […]

Continue Reading

C++17 – std::apply() and std::invoke()

Written by on October 14, 2018 in C++, Programming with 0 Comments
C++17 – std::apply() and std::invoke()

Calling a function (or function object) dynamically, through a pointer known at runtime, is a common programming scenario. Almost all languages support this use case. Lisp, for example, has apply and funcall. When using apply, you can see that the arguments are passed via a separate list object. With funcall, however, the arguments are passed […]

Continue Reading

Dependency Graph to RDF – Part 2

Written by on September 30, 2018 in LISP, Natural Language Processing, Programming with 0 Comments
Dependency Graph to RDF – Part 2

In the last post, I outlined an approach to convert a dependency graph (the result of dependency parsing) to RDF. The particular RDF format I used is Turtle, which is widely supported. Today, I would like to show how to load this RDF data in a Semantic  Graph database and make queries on it. There […]

Continue Reading

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

Top