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

Analysing Screenplay in Mathematica – II

Written by on January 14, 2018 in Mathematica, Programming with 0 Comments
Analysing Screenplay in Mathematica – II

In the previous post I showed how we can use Mathematica to analyse screenplays, and gave some interesting statistics about the various characters and scenes from the movie The Prestige. In today’s post, I want to continue that discussion by sharing some more statistics, and then look at another movie, The Bourne Ultimatum. We concluded […]

Continue Reading

Analysing Screenplay with Mathematica

Written by on January 1, 2018 in Mathematica, Programming with 0 Comments
Analysing Screenplay with Mathematica

I have a close relative who is an aspiring movie screenplay writer. During one of our recent meetings, he shared with me with a lot of interesting information about screenplay writing and its challenges. He even lent me a few good books to read further. One of the books is Essentials of Screenwriting by Richard […]

Continue Reading

C++17: constexpr if

Written by on December 17, 2017 in C++, Programming with 0 Comments
C++17: constexpr if

constexpr if is another nice little feature in C++17, which significantly simplifies the way we code, especially in the context of templates. In this article, I will briefly talk about this feature and look at some examples. constexpr if is a variant of the standard if statement we have had all along. The primary difference  […]

Continue Reading

C++17: std::any

Written by on December 3, 2017 in C++, Programming with 0 Comments
C++17: std::any

In the previous two posts, I talked about std::variant<> and std::optional<>. Today, I want to take up std::any for discussion. The type any (implemented by the class any) allows a variable to hold a single value of any type. More interestingly, the type of the value held by a variable of type any can even […]

Continue Reading

C++17: std::optional<>

Written by on November 21, 2017 in C++, Programming with 0 Comments
C++17: std::optional<>

Suppose we want to write a function that returns a value, but with the possibility that  the computation might fail. This failure can be represented as an exception, or as a return value that unamibiguously denotes failure (for example, -1). Throwing an exception is a strong form of failure and might not be appropriate in […]

Continue Reading

C++17: std::variant<>

Written by on November 5, 2017 in C++, Programming with 0 Comments
C++17: std::variant<>

C++17 introduces a new type-safe union in the form of std::variant. At any time, it can store a single value from one of many types. We need to include <variant> to use this feature. Let us look at a simple example to get started: First, we define a variant object v1 to hold either an int […]

Continue Reading

Top