Skip to content

Instantly share code, notes, and snippets.

@vallantin
Created January 22, 2019 16:12
Show Gist options
  • Save vallantin/2415ba2a2e0af45114bd135208e0fa08 to your computer and use it in GitHub Desktop.
Save vallantin/2415ba2a2e0af45114bd135208e0fa08 to your computer and use it in GitHub Desktop.
# import Aruana for text preprocessing
from aruana import Aruana
# start Aruana
aruana = Aruana('en')
# define text to be processed
text = "I told you that she was not happy"
text = aruana.preprocess(text, remove_stopwords=True, stem=False)
print(text)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment