Created
October 23, 2020 12:01
-
-
Save shahules786/77087383ba60dc9425be411d0cfb226c to your computer and use it in GitHub Desktop.
corpus
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
def preprocess_text(text: list): | |
"""Function to preprocess and create corpus""" | |
new_corpus = [] | |
for text in text: | |
words = [w for w in text.split()] | |
new_corpus.append(words) | |
return new_corpus |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment