Been a long time since I’ve update the blog. I have been recently working on an Information Retrieval project. Along the way learned a few tricks

  1. Using python’s abc module to create abstract base classes and methods
  2. Using click module for writing better command line scripts
  3. Using lxml’s iterparse method for speeding up parsing of a large XML file
  4. Using os.linesep for writing to file the correct way
  5. Using json.dump’s indent method to pretty print JSON on terminal
  6. Using joblib’s Memory decorator to memorize/cache partial results
  7. Using blessings and terminaltable for pretty printing onto terminal

Good learning this week!