CS50 2019 Lecture 6 – Python

It is Friday afternoon and we are still observing social distancing restrictions and working from home. That said, things are slowly relaxing and more people are out and about. The number of cars on the road has more than tripled since the stay home order started a couple months ago. Please observer social distancing and wear a mask when in public. It is for your well being, your family and friends, your country, and all human beings on this planet.

Currently I am running some tests and writing documentation on some code I wrote earlier during the week. During idle times I am putting together the contents for this post. Hope to be done in the next hour or so. My wife left a minute ago to walk (keeping social distancing) with a neighbor. The day is sunny but rather cold. The temperature is in the upper 40’s. Continue reading “CS50 2019 Lecture 6 – Python”

Tag Content Extractor

It is a nice sunny day, at least when I was having breakfast earlier this morning, in the Twin Cities of Minneapolis and St. Paul. Better yet, it is Friday!!!

Spoke with one of my sons. He and his family had scheduled a holiday and were on the road. When they moved, they build a home. Some years went by and last fall they decided to buy a new one that they liked. Shortly after they moved and put their first home on the market. A few months went by and finally they closed on it yesterday. I am very glad for them. Having two mortgages is not convenient at all. Continue reading “Tag Content Extractor”

More than a List of Words

When indexing text based word frequency / relevance which may be applicable for web searches, one of the procedures used is to create a term frequency (tf) array followed by an inverse document frequency (idf) one. You can read more about this here.

In a previous post I experimented with some text in order to build hashmaps with the words of sentences (to keep things in perspective for a blog post). In that post I used a string that I copied from a course I took some years ago. The sting was already preprocessed. The text had already been stripped off punctuation marks. Continue reading “More than a List of Words”

Regular Expressions

A regular expression is a sequence of characters that define a search pattern. Usually this pattern is then used by string searching algorithms for “find” / “match” or “find and replace” operations on strings. Continue reading “Regular Expressions”