Created
March 25, 2020 09:05
-
-
Save amita-shukla/6bb6f3630fc99a468a8c52bf835b1a26 to your computer and use it in GitHub Desktop.
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 process_all(text): | |
text = remove_tags(text) | |
text = process_single_quote(text) | |
text = decontract(text) | |
text = remove_special_chars(text) | |
text = remove_more_than_single_space(text) | |
text = text.lower() | |
text = stem_sentence(text) | |
return text |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This will be way shorter!!
def process_all(text):
funcs = [remove_tags,process_single_quote,decontract,remove_special_chars,remove_more_than_single_space,lower,stem_sentence]
for f in funcs:
text = f(text)
return text