#!/bin/bash # stats_performance.sh (Creation of the Wikipedia n-grams for dictionary-analysis) # Copyright (C) 2018 Daniel Marschall, ViaThinkSoft # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software Foundation, # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA DIR=$( dirname "$0" ) LANG="en" function go() { SECONDS=0 sleep $1 "$DIR"/wiki_make_stats "$1" "stats/count_$LANG_$1.csv" "$DIR"/mangled/mangled_$LANG_*.txt echo "n = $1: $SECONDS seconds" } for i in `seq 1 7`; do go $i done