<commit_before>#!/bin/sh -e

if [ ! -e text8 ]; then
	echo "Download text8 corpus"
	if hash wget 2>/dev/null; then
		wget -q --show-progress http://mattmahoney.net/dc/text8.zip
	else
		curl --progress-bar -O http://mattmahoney.net/dc/text8.zip
	fi

	echo "Unzip text8.zip"
	unzip text8.zip
	rm text8.zip
fi

go run main.go word2vec --input text8
echo "Save trained vectors to example/word_vectors.txt"<commit_msg>Change running command<commit_after>#!/bin/sh -e

if [ ! -e text8 ]; then
	echo "Download text8 corpus"
	if hash wget 2>/dev/null; then
		wget -q --show-progress http://mattmahoney.net/dc/text8.zip
	else
		curl --progress-bar -O http://mattmahoney.net/dc/text8.zip
	fi

	echo "Unzip text8.zip"
	unzip text8.zip
	rm text8.zip
fi

go run main.go word2vec --input text8 --model skip-gram --optimizer ns --output example/word_vectors_sg.txt
echo "Save trained vectors to example/word_vectors_sg.txt"
{'fraction_non_alphanumeric': 0.12665198237885464, 'fraction_numerical': 0.022026431718061675, 'mean_word_length': 3.3701923076923075, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4237175', 'n_tokens_mistral': 366, 'n_tokens_neox': 348, 'n_words': 97}