and the evening and the morning were the first day.
and god said let there be a firmament in the midst of the waters and let it divide the waters from the waters.
and god made the firmament and divided the waters which were under the firmament from the waters which were above the firmamenin the beginning god created the heaven and the earth.
and the earth was without form and void; and darkness was upon the face of the deep.
and the spirit of god moved upon the face of the waters.
with open(filename,'r') as f:
#converting to list where each element is an individual line of text file
lines=[line.rstrip() for line in f]
#converting all letters to lowercase
lowercase_lines=[x.lower() for x in getData(filename)]
#strip out all non-word or tab or space characters(remove punts)
stripped_lines=[re.sub(r"[^\w \t]+", "", x) for x in lowercase_lines]
from nltk.corpus import stopwords
for sentence in normalize(filename):
for word in sentence.split():
if word.lower() not in stopwords:
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)