w2vserver: load and show training args
diff --git a/w2v-server.pl b/w2v-server.pl
index aa2e46f..1ea1e48 100755
--- a/w2v-server.pl
+++ b/w2v-server.pl
@@ -12,6 +12,8 @@
 our $opt_p = 5676;
 our $opt_n = undef;
 
+my $training_args="";
+
 getopt('il:p:n:'); 
 
 # -cbow 1 -size 200 -window 8 -negative 25 -hs 0 -sample 1e-4 -threads 40 -binary 1 -iter 15
@@ -19,6 +21,10 @@
   init_net("vectors15.bin", $opt_n, ($opt_i? 1 : 0));
 } else {
   init_net($ARGV[0], $opt_n, ($opt_i? 1 : 0));
+  if(open(FILE, "$ARGV[0].args")) {
+    $training_args = <FILE>;
+  }
+  close(FILE);
 }
 
 my $daemon = Mojo::Server::Daemon->new(
@@ -52,7 +58,7 @@
 		}
 	}
 	$word =~ s/ *\| */ | /g;
-  $c->render(template=>"index", word=>$word, no_nbs=>$no_nbs, no_iterations => $no_iterations, epsilon=> $epsilon, perplexity=> $perplexity, show_som=>$som, sort=>$sort, lists=> \@lists, collocators=> $res->{syntagmatic});
+  $c->render(template=>"index", word=>$word, no_nbs=>$no_nbs, no_iterations => $no_iterations, epsilon=> $epsilon, perplexity=> $perplexity, show_som=>$som, sort=>$sort, training_args=>$training_args, lists=> \@lists, collocators=> $res->{syntagmatic});
 };
 
 $daemon->run; # app->start;
@@ -944,12 +950,11 @@
     <div id="sominfo">SOM iteration <span id="iterations">0</span></div>
     % }
   </div>
-	<p>
-		Word vector model based on  DeReKo-2015-II. Trained with <a href="https://code.google.com/p/word2vec/">word2vec</a> using the following parameters:</p>
-  <pre>
--cbow 1 -size 300 -window 7 -negative 5 -hs 0 -sample 1e-5 -threads 44 -binary 1 -iter 5
-	</pre>
-	</p>
-</body>
+  % if($training_args) {
+    <p>
+      Word vector model trained with <a href="https://code.google.com/p/word2vec/">word2vec</a> using the following parameters: <pre><%= $training_args %></pre>
+    </p>
+  % }
+  </body>
 </html>