This commit is contained in:
Kenneth Heafield 2016-04-18 14:55:25 +00:00
parent 89bc8b1d36
commit 30451239b8
2 changed files with 3 additions and 1 deletions

3
scripts/json2text.pl Normal file → Executable file
View File

@ -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);
print "$_\n" foreach(@v);

1
scripts/vocab2txt.py Normal file → Executable file
View File

@ -1,3 +1,4 @@
#!/usr/bin/env python
import sys
import cPickle
import operator