This file contains hidden or 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
/* | |
Sometimes Elementor doesn't print out the bullets/numbers of an ordered list | |
You need to add an ID to the section (listBullet or listNumber) and define the following css: | |
*/ | |
.listBullet li{ | |
list-style-type: disc; | |
margin-left: 20px; | |
margin-top: 5px; | |
} |
This file contains hidden or 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
#!pip install Unidecode | |
import unidecode | |
def clean_string(str): | |
str = str.strip() | |
str = str.replace(" ","") #remover espaços | |
str = str.replace("'","") #remover apóstrofos | |
str = str.lower() #colocar tudo em minúsculas | |
str = unidecode.unidecode(str) #remover acentuação | |
return str |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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 conta_palavras(text, stop_words, punctuations): | |
#divide o texto em tokens | |
tokens = word_tokenize(text) | |
#remove as stopwords e pontuacao | |
keywords = [word for word in tokens if not word in stop_words and not word in punctuations] | |
#gera dicionario com as palavras e contagem | |
wordcount = {} | |
for word in keywords: | |
word = word.lower() #todas minúsculas |
This file contains hidden or 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
#filename = 'abilio.hdr' | |
file = open(base_path/filename_hdr) | |
lista = file.readlines() #todo o arquivo esta em lista | |
dicionario = {} | |
for i in range(len(lista)): | |
parts = lista[i].split('=') #return list: ('times ',' 1\n') | |
termo = '' | |
comp = '' |