Python

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

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

Identifying Emotions from Text

Written by on February 17, 2019 in Natural Language Processing, Programming, Python with 0 Comments
Identifying Emotions from Text

Identifying the predominant sentiment in unstructured text is used widely these days. There are several REST API services that allow you to submit a piece of text and get back the corresponding sentiment analysis. Meaningcloud, Aylien, Google’s Cloud Natural Language API, and  IBM Natural Language Understanding Service are just a few. Emotion detection, especially from facial […]

Continue Reading

Coreference Resolution Using spaCy

Coreference Resolution Using spaCy

According to Stanford NLP Group, “Coreference resolution is the task of finding all expressions that refer to the same entity in a text”.  You can also read this Wikipedia page. For example, in the sentence “Tom dropped the glass jar by accident and broke it”, what does “it” refer to? I am sure you will […]

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

CLPython: Python in Common Lisp – Part 2

Written by on July 22, 2017 in LISP, Programming, Python with 0 Comments

We looked at the basic features of CLPython in our last blog. In today’s post let us look at the support for Python classes. PYTEST 130 > (defun pyclass ()   (run  “class Employee:    def __init__(self, name, dept):      self.name = name      self.dept = dept    def dump(self):      print ‘Name […]

Continue Reading

CLPython – Python in Common Lisp

Written by on July 7, 2017 in LISP, Python with 0 Comments

My work in the area of NLP requires me to work with several frameworks across multiple languages such as Java, Python and Lisp. Sometime ago I got a chance to experiment with CLPython, an open-source implementation of Python in Common Lisp. Although CLPython is not under active development now, I found it quite usable. In fact […]

Continue Reading

Top