Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/marian-nmt/marian.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenneth Heafield <github@kheafield.com>2016-04-18 17:55:25 +0300
committerKenneth Heafield <github@kheafield.com>2016-04-18 17:55:25 +0300
commit30451239b8edd7bb7d086145f65d9099025012c6 (patch)
tree1d1038286fab9fe50aef17ae4e1f1a08ce68065b /scripts
parent89bc8b1d36946c7dff14a9d189c8c0fe27d7049e (diff)
Shebang
Diffstat (limited to 'scripts')
-rwxr-xr-x[-rw-r--r--]scripts/json2text.pl3
-rwxr-xr-x[-rw-r--r--]scripts/vocab2txt.py1
2 files changed, 3 insertions, 1 deletions
diff --git a/scripts/json2text.pl b/scripts/json2text.pl
index 8ddce12c..7bd6117b 100644..100755
--- a/scripts/json2text.pl
+++ b/scripts/json2text.pl
@@ -1,3 +1,4 @@
+#!/usr/bin/env perl
use strict;
use JSON;
use Data::Dumper;
@@ -12,4 +13,4 @@ my @v;
foreach my $k (keys %$d) {
$v[$d->{$k}] = $k;
}
-print "$_\n" foreach(@v); \ No newline at end of file
+print "$_\n" foreach(@v);
diff --git a/scripts/vocab2txt.py b/scripts/vocab2txt.py
index fb054fa2..cfe26f06 100644..100755
--- a/scripts/vocab2txt.py
+++ b/scripts/vocab2txt.py
@@ -1,3 +1,4 @@
+#!/usr/bin/env python
import sys
import cPickle
import operator