Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save saimadhu-polamuri/f5005d2f4d628b887450eb577e9321ef to your computer and use it in GitHub Desktop.
Save saimadhu-polamuri/f5005d2f4d628b887450eb577e9321ef to your computer and use it in GitHub Desktop.
## Required packages
import random
import spacy
import pandas as pd
import seaborn as sns
from spacy.util import minibatch
from sklearn.metrics import accuracy_score
from sklearn.metrics import confusion_matrix
from matplotlib import pyplot as plt
## Paths
data_path = "../inputs/spam.csv"
######## Main method ########
def main():
# Load dataset
data = pd.read_csv(data_path)
print(data.head())
if __name__ == "__main__":
main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment