You may have created a conda environment with specific versions of dependencies needed to run your script. What happens when you need to run this script on another computer? You can simply export the environment in a .yml file and…
Performing Named Entity Recognition
Named Entity Recognition involves identifying portions of text representing labels such as geographical location, geopolitical entity, persons, etc. In this tutorial, we will use deep learning to identify various entities in Medium articles and present them in useful way. In…
Creating a Text Summarizer Using Natural Language Processing
There are several methods of generating summaries for text. In this tutorial, I will be covering an extractive method in which the top 2 most important sentences in an article serve as the summary. This method uses GloVe, cosine similarity…
Creating a Text Summarizer Using the Heap Queue Algorithm
Text summarization is useful for highlighting crucial information for business such as buying signals. There are some simple methods of summarizing text, although less effective than using deep learning. In this tutorial we will be using the Heap queue algorithm…
How to Scrape Website Data with Python’s Beautiful Soup Library
Kaggle is an excellent resource for datasets to be used for data analysis and machine learning. However, if the data you need has not already been collated, scraping website data is easy to do! Please note: make sure to read…
How to Create Bee Swarm Plots in Tableau Public via R
I used the following tutorial to create bee swarm plots via RStudio: https://canonicalized.com/beeswarm-chart-in-tableau-via-r/amp/ Namely, the steps I took were as follows: (Please note: replace FILE_NAME, NEW_FILE_NAME, and MEASURE_NAME with your relevant information.) Step 1: Import your dataset into RStudio, or…
Predicting Art Genre
I’ve opened a kaggle account and used the Best Artworks of All Time dataset to train models to make predictions on art genre based on century and nationality. Kaggle allows me to load the Jupyter Notebook web app and write…
Rendering Django Forms Automatically for Beginners
models.py contains classes needed for rendering things such as forms automatically when a user loads the webpage. The form is pieced together using django with each page reload instead of already existing as an .html webpage. Import then use Django’s…
Get Around the Django Error “ cannot be specified for model form as it is a non-editable field”
CreateView is a class in Django for creating views specifically for creating the form and saves entered data into the database. Make sure you have the following in views.py: (Note: <form class name> is generally <model name> + “Form”) class…
Get Around that Pesky Django Migration Error: “Column Does Not Exist” and Add New Columns in Your SQLite3 Database
1. Remove your updates from models.py, views.py and admin.py 2. ./manage.py makemigrations appname 3. ./manage.py migrate –fake appname 4. Re-add your updates to models.py, views.py and admin.py 5. ./manage.py makemigrations appname 6. ./manage.py migrate appname 7. python manage.py runserver