This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ============================================================================= | |
# We will create a dictionary to represent the graph | |
# ============================================================================= | |
graph = { | |
'a':{'b':3,'c':4, 'd':7}, | |
'b':{'c':1,'f':5}, | |
'c':{'f':6,'d':2}, | |
'd':{'e':3, 'g':6}, | |
'e':{'g':3, 'h':4}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import webbrowser | |
import time | |
from gtts import gTTS | |
import speech_recognition as sr | |
import smtplib | |
content = None | |
receiver = None |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Data Preprocessing Template | |
# Importing the libraries | |
import numpy as np | |
import matplotlib.pyplot as plt | |
import pandas as pd | |
# Importing the dataset | |
dataset = pd.read_csv('Data.csv') | |
X = dataset.iloc[:, :-1].values |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from textblob import TextBlob | |
wiki = TextBlob("I am very happy but also a little sad.") | |
print(wiki.sentiment.polarity) |