Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Kyubyong/neural_japanese_transliterator
/ functions
Functions
30 in github.com/Kyubyong/neural_japanese_transliterator
⨍
Functions
30
◇
Types & classes
3
↓ 4 callers
Function
conv1d
Args: inputs: A 3-D tensor with shape of [batch, time, depth]. filters: An int. Number of outputs (=activation maps) size: An i
modules.py:130
↓ 4 callers
Function
load_vocab
()
data_load.py:16
↓ 3 callers
Function
gru
Applies a GRU. Args: inputs: A 3d tensor with shape of [N, T, C]. num_units: An int. The number of hidden units. bidirectio
modules.py:198
↓ 3 callers
Function
normalize
Applies {batch|layer} normalization. Args: inputs: A tensor with 2 or more dimensions, where the first dimension has `batch_siz
modules.py:40
↓ 2 callers
Function
_make_dicts
(fpath, min_cnt)
data_load.py:17
↓ 2 callers
Function
embed
Embeds a given tensor. Args: inputs: A `Tensor` with type `int32` or `int64` containing the ids to be looked up in `lookup ta
modules.py:12
↓ 2 callers
Function
prenet
Prenet for Encoder and Decoder. Args: inputs: A 3D tensor of shape [N, T, hp.embed_size]. is_training: A boolean. scope: Optiona
modules.py:255
↓ 1 callers
Function
_restore
Fetch the value from slice queues, then enqueue them again.
data_load.py:78
↓ 1 callers
Function
annotate
()
annotate.py:39
↓ 1 callers
Function
attention_decoder
Applies a GRU to `inputs`, while attending `memory`. Args: inputs: A 3d tensor with shape of [N, T', C']. Decoder inputs. memory: A 3d
modules.py:227
↓ 1 callers
Function
clean
(text)
annotate.py:23
↓ 1 callers
Function
conv1d_banks
Applies a series of conv1d separately. Args: inputs: A 3d tensor with shape of [N, T, C] K: An int. The size of conv1d banks. Tha
modules.py:172
↓ 1 callers
Function
create_train_data
()
prepro.py:47
↓ 1 callers
Function
decode
Args: decoder_inputs: A 3d tensor with shape of [N, T', C'], where C'=hp.n_mels*hp.r, dtype of float32. Shifted melspectrogram of
networks.py:62
↓ 1 callers
Function
encode
Args: inputs: A 2d tensor with shape of [N, T], dtype of int32. is_training: Whether or not the layer is in training mode. scop
networks.py:13
↓ 1 callers
Function
eval
()
eval.py:21
↓ 1 callers
Function
get_batch
Loads training data and put them in queues
data_load.py:61
↓ 1 callers
Function
get_romaji
(sent)
annotate.py:28
↓ 1 callers
Function
highwaynet
Highway networks, see https://arxiv.org/abs/1505.00387 Args: inputs: A 3D tensor of shape [N, T, W]. num_units: An int or `None`. Spe
modules.py:278
↓ 1 callers
Function
load_test_data
Embeds and vectorize words in input corpus
data_load.py:39
↓ 1 callers
Function
load_train_data
Loads vectorized input training data
data_load.py:33
↓ 1 callers
Function
main
()
train.py:60
↓ 1 callers
Function
shift_by_one
Shifts the content of `inputs` to the right by one so that it becomes the decoder inputs. Args: inputs: A 2d tensor with shape
utils.py:114
Method
__init__
(self, is_training=True)
train.py:22
Method
__init__
(self, func, queue=None, enqueue_ops=None, close_op=None, cancel_op=None, queue_closed_except
utils.py:66
Method
_run
(self, sess, enqueue_op, coord=None)
utils.py:76
Function
build_vocab
()
prepro.py:20
Function
enqueue_func
(sess, op)
utils.py:31
Function
producer_func
r"""Decorates a function `func` as producer_func. Args: func: A function to decorate.
utils.py:15
Function
wrapper
r""" Args: inputs: A inputs queue list to enqueue dtypes: Data types of each tensor capacity: Queue capaci
utils.py:22