This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
use warnings; | |
use strict; | |
use Carp qw{ confess }; | |
use List::Util qw{ shuffle }; | |
use Test::More tests => 5; | |
use Benchmark qw{ cmpthese }; | |
my @ATTRS; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
from tensor2tensor.data_generators import text_encoder | |
import tensorflow as tf | |
import sys | |
flags = tf.flags | |
FLAGS = flags.FLAGS | |
flags.DEFINE_string("vocab", None, "Path to the subword vocabulary") |