Skip to content

Instantly share code, notes, and snippets.

View ericbrasiln's full-sized avatar
💻
Back to work

Eric Brasil ericbrasiln

💻
Back to work
View GitHub Profile
@ericbrasiln
ericbrasiln / wc-redonda.py
Last active August 30, 2020 11:20
Código para criar wordcloud a partir de arquivo de txt. Inclui opção de máscara, cores e stopwords.
#!/usr/bin/env python
'''
Feito a partir do repositório https://github.com/amueller/word_cloud
e do guia de Fahmi Nurfikri https://towardsdatascience.com/create-word-cloud-into-any-shape-you-want-using-python-d0b88834bc32
'''
import os
import numpy as np
from os import path
from wordcloud import WordCloud, STOPWORDS, ImageColorGenerator