Skip to content

Abdoulrasheed/crime_prediction_model

Repository files navigation

#Crime Prediction

Run the following commands in a python shell

import nltk

# Download stop words
nltk.download('stopwords')

# Download sample tweets, used for training our model
nltk.download('stopwords')

# Download punkt, a pre-trained model that helps you tokenize words and sentences
# For instance, this model knows that a name may contain a period (like “A. Ibrahim) and the presence of this period in a sentence does not necessarily end it.
nltk.download('punkt')

# Download wordnet, wordnet is a lexical database for the English language that helps the script determine the base word.
nltk.download('wordnet')

# Download averaged_perceptron_tagger, it is a resource to determine the context of a word in a sentence.
nltk.download('averaged_perceptron_tagger')