Martin Andrews @ redcatlabs.com
24 November 2015
Jim Soon PER
became Managing Director of Lam Soon ORG
."token"
→ Float[100]
(used word2vec
)
blocks
framework
x = tensor.matrix('tokens', dtype="int32")
x_mask = tensor.matrix('tokens_mask', dtype=floatX)
lookup = LookupTable(config.vocab_size, config.embedding_dim)
x_extra = tensor.tensor3('extras', dtype=floatX)
rnn = Bidirectional(
SimpleRecurrent(activation=Tanh(),
dim=config.hidden_dim,
),
)
# Need to reshape the rnn outputs to produce suitable input here...
gather = Linear(name='hidden_to_output',
input_dim = config.hidden_dim*2,
output_dim = config.labels_size,
)
Origin : Berkeley, now with industry buy-in
My blog : http://mdda.net/
GitHub : mdda