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
#-*- coding: utf-8 -*- | |
import re | |
import nltk | |
from nltk.tokenize import RegexpTokenizer | |
from nltk import bigrams, trigrams | |
import math | |
stopwords = nltk.corpus.stopwords.words('portuguese') |
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
function loadtimes ( dirname ) | |
if isempty ( dirname ), return, end | |
x = '$(NF)","$5'; | |
cmd = sprintf ( 'find %s -iname *.mat | xargs -I {} sh -c "ls -lh {}" | awk ''{print $NF","$5}'' > loadtimes.csv', dirname ); | |
system ( cmd ); | |
fhandle = fopen('loadtimes.csv','rt'); | |
csv_cell = textscan(fhandle,'%s %s','Delimiter',','); |