In recent years, the development of Large Language Models (LLMs) has been at the forefront of advancing Natural Language Processing (NLP) to new heights. LLMs such as OpenAI’s GPT-3 or its successor, GPT-4, have not only demonstrated the capability to understand and...
Introduction In the recent era of rapidly progressing artificial intelligence (AI), gargantuan changes are sweeping across many scientific and technological domains. Perhaps one of the most fascinating evolutions is in the field of Natural Language Processing (NLP)...
Introduction Use git grep to search code within the git repo. It makes it very convenient and efficient to do code searches without leaving your terminal (or editor). Setup Git Repo Setting up a sample git repo to play with git grep. git init someproject cd...
Simple HTTP server This server can be used to serve HTML files. # Python2 python -m simplehttpserver # Python3 python3 -m http.server python3 -m http.server 8080 python3 -m http.server 8080 –bind 127.0.0.1 Simple CGI server # Python2 python -m CGIHTTPServer #...
Parsing JSON import json data = json.loads(json_string) Dumping complex structures import json print json.dumps(something) Convert YAML to JSON import yaml, json with open(‘./file.yaml’) as f:...
chr, ord, and ascii, are built-in functions in the Python programming language. They are used to convert and represent characters and strings, specifically Unicode and ASCII character sets. chr This function returns a string representing a character whose Unicode code...
To retrieve data received in a Flask request, you can use the following attributes available on the request object: from flask import request request.args: This attribute contains the key/value pairs from the URL query string. You can access them...
Data-driven scripting language for data extraction and reporting. Line-by-line or record-by-record processing of text files. Blocks Working with a single file BEGIN { print(“”runs at the start of all records””) } { print(“”run for...
Introduction Commit smaller chunks of code often, and always commit in the present. git-commit man page: https://git-scm.com/docs/git-commit git commit takes author and committer information from the following environment variables if they are set: GIT_AUTHOR_NAME...
Ask yourself these questions when you are faced with a problem: Is it really a problem? Does the problem need to be solved? Does the problem need to be solved now? Does the problem need to be solved by you/us? Can you/we break the problem into chunks and solve them?...