Python

Using Streamlit to Create Multiple Choice Questions (MCQ)

Written by on March 26, 2024 in Programming, Python with 0 Comments
Using Streamlit to Create Multiple Choice Questions (MCQ)

Is it possible to build a web application in Python to display (and evaluate) multiple-choice questions? Even more importantly, can we render “latex”  equations as part of the MCQ? After briefly looking at NiceGUI, Flet, Solara, Trame, and Streamlit, I decided to go ahead with Streamlit to build this web app.  Even though this was […]

Continue Reading

Using Similarity Search in Homeopathy Repertorization Software – Part 2

Written by on February 21, 2024 in Homeopathy, Python with 0 Comments
Using Similarity Search in Homeopathy Repertorization Software – Part 2

In my earlier article, I had explained how natural language text describing a symptom can be converted to a formal “rubric” by using a vector database. In today’s article, I will show how this can be extended to support multiple symptoms in the input text with automatic repertorisation to identify potential remedies. Let us consider […]

Continue Reading

The Hy Programming Language

Written by on January 28, 2024 in Hy Language, LISP, Python with 0 Comments
The Hy Programming Language

In an earlier article I had explained how to execute Python code from within Common Lisp using “CLPython” package. In contrast to that approach, “Hy” is a Lisp-style language (not compatible with Common Lisp) that is embedded in Python and hence provides seamless interoperability with Python code. Installation is straightforward (it is usually a good idea to […]

Continue Reading

Simulating Python Zip in Lisp

Written by on September 4, 2023 in LISP, Programming, Python with 1 Comment
Simulating Python Zip in Lisp

The zip() function in Python is a convenient mechanism for iterating over multiple “iterables” in parallel. Looping over lists is a common scenario. Here is the output generated by the above code: Common Lisp does not have such a feature built into the language or as part of the standard library. Of course, we have […]

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

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

Top